This repository has been archived by the owner on Oct 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
82 lines (78 loc) · 2.16 KB
/
docker-compose.yml
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
version: "3.2"
services:
db:
image: gitlab.cs.uni-duesseldorf.de:5001/cn-tsn/project/dbas/dbas/db
restart: unless-stopped
ports:
- "5432:5432"
volumes:
- ./docker/db/entrypoint:/docker-entrypoint-initdb.d
- ./docker/db/data:/var/lib/postgresql/data
logging:
driver: syslog
options:
syslog-address: "tcp://docker-int:514"
tag: "dbas/db"
tmpfs: /tmp
web:
image: gitlab.cs.uni-duesseldorf.de:5001/cn-tsn/project/dbas/dbas
command: bash -c "./wait-for-it.sh -t 0 -h db -p 5432 && alembic upgrade head && uwsgi --ini-paste production.ini"
restart: unless-stopped
logging:
driver: syslog
options:
syslog-address: "tcp://docker-int:514"
tag: "dbas/web"
environment:
AUTHN_SECRET: ${AUTHN_SECRET}
DB_PW: ${DB_PW}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_USER: ${DB_USER}
URL: ${URL}
KEY_PATH: ${KEY_PATH}
PUBKEY_PATH: ${PUBKEY_PATH}
env_file:
- production.env
tmpfs: /tmp
docs:
image: gitlab.cs.uni-duesseldorf.de:5001/cn-tsn/project/dbas/dbas/docs
restart: unless-stopped
proxy:
image: nginx:1.18-alpine
ports:
- "${PROXY_PORT}:80"
environment:
DEPLOY_HOST: ${URL}
volumes:
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf/domain.conf:/etc/nginx/domain.conf:ro
- ./nginx/init:/etc/nginx/init:ro
logging:
driver: syslog
options:
syslog-address: "tcp://docker-int:514"
tag: "dbas/proxy"
restart: unless-stopped
env_file:
- production.env
decidotron:
image: hhucn/decidotron:latest
restart: unless-stopped
ports:
- "${DECIDOTRON_PORT}:8080"
depends_on:
- db
volumes:
- ./docker/decidotron/store:/store
logging:
driver: syslog
options:
syslog-address: "tcp://docker-int:514"
tag: "dbas/decidotron"
environment:
DB_PW: ${DB_PW}
API_TOKEN: ${DECIDOTRON_API_TOKEN} #"0e9ba:bb3b1ac2c6cee9cb6affb0d803406a6445c0a214a5837d54f3caebfa697fb8c5" # Get a real API-Token first
DBAS_URL: ${URL}
env_file:
- production.env