-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-prod.yml
More file actions
63 lines (58 loc) · 1.35 KB
/
docker-compose-prod.yml
File metadata and controls
63 lines (58 loc) · 1.35 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
version: "3.5"
services:
db:
image: postgis/postgis:13-3.0
volumes:
- /home/quantum/db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=sip_db
- POSTGRES_USER=sip
- POSTGRES_PASSWORD=Foo0roo0
networks:
- sip
restart: on-failure
webapplication:
image: registry.quantumobile.co/geoap_webapplication
volumes:
- ../data:/data
- ../data/media:/media
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DJANGO_SETTINGS_MODULE=sip.settings-prod
- POSTGRES_DB=sip_db
- POSTGRES_USER=sip
- POSTGRES_PASSWORD=Foo0roo0
command: /bin/bash -c "exec invoke run-prod"
depends_on:
- db
networks:
- sip
restart: on-failure
webserver:
image: registry.quantumobile.co/geoap_webserver
volumes:
- ../data:/data
- /etc/letsencrypt:/etc/letsencrypt
expose:
- 80
- 443
- 8090
ports:
- "80:80"
- "443:443"
- "8090:8090"
depends_on:
- webapplication
networks:
- sip
restart: on-failure
# https://github.com/bokysan/docker-postfix#relaying-messages-through-google-apps-account
smtp:
image: boky/postfix
environment:
- ALLOWED_SENDER_DOMAINS=portal.soilmate.ai
- RELAYHOST=smtp-relay.gmail.com:587
networks:
- sip
networks:
sip: