forked from APSIMInitiative/apsim-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
184 lines (171 loc) · 4.37 KB
/
docker-compose.yml
File metadata and controls
184 lines (171 loc) · 4.37 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# Top level docker compose
services:
apsim-builds:
image: apsiminitiative/apsim-builds:latest
pull_policy: always
container_name: apsim-builds
restart: unless-stopped
profiles:
- all
environment:
- APACHE_LOG_DIR=/usr/local/apache2/logs
- JENKINS_URL=${JENKINS_URL}
- JENKINS_TOKEN_NG=${JENKINS_TOKEN_NG}
- JENKINS_TOKEN_CLASSIC=${JENKINS_TOKEN_CLASSIC}
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
- HMAC_SECRET_KEY=${HMAC_SECRET_KEY}
- DOCUMENTATION_PATH=/var/builds/docs
- INSTALLERS_PATH=/var/builds/installers
- NG_DB_CONNECTION_STRING=${NG_DB_CONNECTION_STRING}
- OLD_DB_CONNECTION_STRING=${OLD_DB_CONNECTION_STRING}
- GITHUB_PAT=${GITHUB_PAT}
- ASPNETCORE_ENVIRONMENT=Production
volumes:
- ${DOCUMENTATION_PATH}:/var/builds/docs
- ${INSTALLERS_PATH}:/var/builds/installers
networks:
- apsim
builds-db:
image: mariadb:10
pull_policy: always
container_name: builds-db
restart: unless-stopped
profiles:
- all
volumes:
- /data/builds/db:/var/lib/mysql
environment:
- MARIADB_ROOT_PASSWORD=${MARIADB_PASSWORD}
networks:
- apsim
httpd:
image: httpd:apsim
pull_policy: always
container_name: httpd
restart: unless-stopped
profiles:
- all
- httpd
ports:
- 80:80
- 443:443
environment:
- APACHE_LOG_DIR=/usr/local/apache2/logs
networks:
- apsim
jenkins:
image: jenkins/jenkins:lts-jdk11
pull_policy: always
container_name: jenkins
restart: unless-stopped
profiles:
- all
volumes:
- /data/jenkins:/var/jenkins_home
networks:
- apsim
postats-site:
image: apsiminitiative/postats:latest
pull_policy: always
container_name: postats-site
restart: unless-stopped
profiles:
- all
environment:
- PORTAL_DB=${PORTAL_DB}
- COLLECTOR_URL=${COLLECTOR_URL}
- ACCEPT_PASSWORD=${ACCEPT_PASSWORD}
- GITHUB_TOKEN=${GITHUB_TOKEN}
networks:
- apsim
postats-db:
image: mariadb:10
pull_policy: always
container_name: postats-db
restart: unless-stopped
profiles:
- all
environment:
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
volumes:
- /data/postats/db:/var/lib/mysql
networks:
- apsim
registration-site:
image: apsiminitiative/registration-site:latest
pull_policy: always
container_name: registration-site
restart: unless-stopped
profiles:
- all
environment:
- APACHE_LOG_DIR=/usr/local/apache2/logs
- REGO_DB_CONNECT_STRING=${REGO_DB_CONNECT_STRING}
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT}
- SMTP_USER=${SMTP_USER}
- SMTP_TOKEN=${SMTP_TOKEN}
- REGISTRATION_TOKEN=${REGISTRATION_TOKEN}
networks:
- apsim
registration-db:
image: mariadb:10
pull_policy: always
container_name: registration-db
restart: unless-stopped
profiles:
- all
networks:
- apsim
volumes:
- /data/registration/db:/var/lib/mysql
vault:
image: vaultwarden/server:latest
pull_policy: always
container_name: vault
restart: unless-stopped
profiles:
- all
environment:
- WEBSOCKET_ENABLED=true # Enable WebSocket notifications.
- ROCKET_PORT=8123
- SIGNUPS_ALLOWED=false
# - ADMIN_TOKEN=${ADMIN_TOKEN}
volumes:
- /data/vault:/data
networks:
- apsim
postats2-site:
image: apsiminitiative/postats:latest
pull_policy: always
container_name: postats2-site
restart: unless-stopped
profiles:
- all
environment:
- PORTAL_DB=${PORTAL_DB}
- COLLECTOR_URL=${COLLECTOR_URL}
- ACCEPT_PASSWORD=${ACCEPT_PASSWORD}
- GITHUB_TOKEN=${GITHUB_TOKEN}
networks:
- apsim
postats2-db:
image: mariadb:10
pull_policy: always
container_name: postats2-db
restart: unless-stopped
profiles:
- all
environment:
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
volumes:
- /data/postats2/db:/var/lib/mysql
networks:
- apsim
volumes:
tsdb:
mongodata:
api:
networks:
apsim:
external: true