-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml.example
94 lines (93 loc) · 4.38 KB
/
docker-compose.yml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: "3"
services:
web:
restart: always
image: "alloyci/alloy_ci:<version>"
command: foreground
depends_on:
- db
volumes:
# This will automatically create a volume on the host, and mount it at
# `/app/uploads`, which is where all artifacts will be stored. You can
# change the location of where the folder is created on the host with:
# - /opt/data:/app/uploads
- /app/uploads
ports:
# The first entry is the exposed port, the second is where the exposed
# port should bind to. Use the same second value here as PORT below
- "4000:80"
environment:
# Set this to your Sentry DSN if you want to have Sentry enabled
SENTRY_DSN: "https://public:[email protected]/1"
DATABASE_URL: "ecto://alloy_ci:<password>@db/alloy_ci_prod"
PORT: 80 # Use 443 for SSL, even if you are proxying SSL via another web server
HOST: "<hostname>"
#------
ENABLE_SLACK_NOTIFICATIONS: "true"
SLACK_CHANNEL: "#ci"
SLACK_SERVICE_NAME: AlloyCI
SLACK_HOOK_URL: "https://hooks.slack.com/services/..."
#------
ENABLE_EMAIL_NOTIFICATIONS: "true"
SMTP_SERVER: mail.example.org
SMTP_PORT: 1176
SMTP_USERNAME: username
SMTP_PASSWORD: password
SMTP_SSL: "true"
ALLOWED_TLS_VERSIONS: "tlsv1.1,tlsv1.2"
FROM_ADDRESS: [email protected]
REPLY_TO_ADDRESS: [email protected]
#------
# Interval, in hours, for how often the system should check for expired artifacts
ARTIFACT_SWEEP_INTERVAL: 24
#------
RUNNER_REGISTRATION_TOKEN: "lustlmc3gMl59smZ"
SERVER_URL: "https://<hostname>"
#------
# GiHub Enterprise Config (delete these lines if not using GitHub Enterprise)
GITHUB_ENTERPRISE: true
GITHUB_ENDPOINT: "https://github.example.com"
#------
GITHUB_CLIENT_ID: "<GitHub OAuth Client ID>"
GITHUB_CLIENT_SECRET: "<GitHub OAuth Client Secret>"
GITHUB_SECRET_TOKEN: "<GitHub Secret Token>"
SECRET_KEY_BASE: "<random 65 chars string>"
GITHUB_APP_ID: "<GitHub App ID>"
GITHUB_APP_URL: "https://github.com/apps/<app_name>"
# The private key for your GitHub integration. Each new line needs
# to have a trailing line end and a backward slash \n\ in order to be
# read properly, e.g.
GITHUB_PRIVATE_KEY: "----BEGIN RSA PRIVATE KEY-----\n\
MIIEpAIBAAKCAQEArq7JCtS05dPcofYA QjSrwkFrayoUu5TDzm4SnRWHEB9PiaK\n\
BfEFEBbhbAtr8z/Sgm iK6y3Bhq4Mmu2V9BFax9SS hDhtdCEleRuPSipsiGLWZ7\n\
9YIgOVfCZ905NiBal8EB3fcGhA8fakSXmdxlTmPREBRuz9SaiYvIEr0PlTtUtMvW\n\
G0UHKVjOYkZWZPMJ2f/KgfkJKD/vNph1jiXUju8NM20zElTdjbqN8yg0R8XJYIXC\n\
k QoiDiubBObSNeAvwdHagR7eH8500KLaa9Bi2KcdK6LKp0iTEGuDFHpNRFVBiWY\n\
BptwtEucI0wRGLUu10IpcslEf7HYiSkNNEC6jwIDAQABAoIBAHuih/abgAGexuz3\n\
Ac9BGGT8fMFkj6pKtgzzrGU G hZGIvRmSUFZrDxkND48Im1JVhejKhe0ReH99Dv\n\
/Zn/dfKQs524IXshhckXo7MFqs1i5dziSWAFnqsXWyhKIoEVuyjnWVvxx/HWBkUf\n\
kTE8FZO7ADBiVd/ROSObBJuGpq3WqgabvMlHRWDPY6LwNU99cCGtC4sIJ3yIEFp6\n\
l6/JLyA4r ViB BNVWA8ahztWE1nnXuXv3Txnb4r2JOrORCWxRPRIjfVRU1693ei\n\
S3WGlrEsKTbpoB3DNjqs3nr7f44QDq KKURlt4T611Y3cRg3htbhRIv2o4Y5AMkO\n\
nkenrBkCgYEA1su28J3LeVu7q4Qn8Q024q/5AdVq7cUhlST3q281WYUVs1/EN8ZF\n\
oT2B17vSAlT7oBNnvFExg8xFyd20o7vfRtC7Eewa56SnvEPz3dvGNGV4nCByhvtp\n\
p4F1xf5dsujdNanF6dj8PRh kBo45It7UeBuCF7OQlgeUdF ROKMZLsCgYEA0DEu\n\
L71LpaoGZxFqCb1jvcidH9YTJR6SdQyNDMwfDkLEjYnLDdGEaMaFbRXENuSVNyc\n\
VSVKxCCoH1eKYZEQz1PfywNys9Ew7p0cmnLOYG/hf/YssJokNWQb5frsqiT5/Im6\n\
3eXsn3lfDRQGnz6SKtA0tbWrnVKglY7KfjJ3jj0CgYEAtGzGLHO/mR8vEzGdg2QA\n\
OIZsedfVTAiM3wUAbaaqf5nE0rmczuTjVD gM6D3FTJhcuMZ/huNphIOhTSQKgED\n\
2i43FSTorK ongHOdQvI//ZES5EN4siIxUV/smKqPkBQoGUNdBLqPj 3AECmjYOE\n\
gRAuHSXVx/DQ9xUsJZzPJUUCgYBSdgiq0cf/SgEPE8yrS7Mbi1uEVSQ QNknAPtZ\n\
naTorxdpgTWG1 XS o1MZ3/M14tgPXlWaEzy3hR5RY00E dal1ge6yC1hHgjKuu3\n\
aR3BKM9ihbkxwfvxgdNjBj5TLg4uLsdrOLS fa5eWb49uOTgPFOEXY65445jbolZ\n\
7tdX6QKBgQCMJGBU1w6Hq5au/d0K77z NdIA r0UBPRkojY0/0nKPW4EM/pErtEn\n\
oPjmj1H4oRavtTNOIlWTUKJtOgAGPJAY4u2mMH4 F7b6j46d61ngE8u3M8 g1NNu\n\
dfCoKgfIDewuDOs8K0SD5wb3dY9PS/5qGoWV 0ivOWYuzhywDWWWcA==\n\
-----END RSA PRIVATE KEY-----"
db:
restart: always
image: postgres:9.6
environment:
POSTGRES_DB: "alloy_ci_prod"
POSTGRES_USER: "alloy_ci"
POSTGRES_PASSWORD: "<password>"