-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (54 loc) · 1.27 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
version: "3.3"
services:
postgres:
image: "postgres:9.6"
volumes:
- /var/lib/postgresql/data
environment:
POSTGRES_USER: odk
POSTGRES_PASSWORD: odk
POSTGRES_DATABASE: odk
mail:
container_name: mail
image: "itsissa/namshi-smtp:4.89-2.deb9u5"
volumes:
- ./files/dkim/config:/etc/exim4/_docker_additional_macros:ro
- ./files/dkim/rsa.private:/etc/exim4/domain.key:ro
environment:
- MAILNAME=local
service:
container_name: service
image: 'codecakes/service'
build:
context: .
dockerfile: service.dockerfile
depends_on:
- postgres
- mail
volumes:
- ./data/target:/data/target/
environment:
- DOMAIN=local
command: [ "./wait-for-it.sh", "postgres:5432", "--", "./start-odk.sh" ]
nginx:
container_name: nginx
image: 'codecakes/nginx'
build:
context: .
dockerfile: nginx.dockerfile
depends_on:
- service
environment:
- SSL_TYPE=selfsign
- DOMAIN=local
ports:
- "80:80"
- "443:443"
healthcheck:
test: [ "CMD-SHELL", "nc -z localhost 443 || exit 1" ]
pyxform:
container_name: pyxform
image: 'yanokwa/pyxform-http:v1.0.0'
volumes:
transfer: