-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (55 loc) · 1.19 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
version: '3'
volumes:
static: {}
dbdata: {}
services:
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: wago_dev
user: postgres
volumes:
- dbdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready"]
interval: 3s
timeout: 2s
retries: 5
smtp:
image: mwader/postfix-relay
restart: always
environment:
- POSTFIX_myhostname=businessagile.eu
nginx:
image: registry.cth.businessagile.tech/wago/nginx:0.2
build: ./nginx/
ports:
- 80:80
links:
- web:web
volumes:
- static:/static
web:
# Docker hack to wait until Postgres is up, then run stuff.
image: registry.cth.businessagile.tech/businessagile/wago:0.2
restart: always
build: .
volumes:
- static:/code/static
links:
- db:db
- smtp:smtp
healthcheck:
test: ['CMD', "curl", "-q", "http://localhost/"]
interval: 3s
timeout: 1s
retries: 10
environment:
PG_NAME: wago_dev
PG_USER: postgres
PG_PASSWORD: password
PG_HOST: db
IN_DOCKER: 1
DEBIAN_FRONTEND: noninteractive