forked from devgateway/ocportal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (58 loc) · 1.26 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
version: '3.8'
services:
web:
image: harbor.dgstg.org/ocnandi/ocnandi-web:${TAG}
restart: always
ports:
- "80:80"
depends_on:
- app
app:
image: harbor.dgstg.org/ocnandi/ocnandi-app:${TAG}
restart: always
extra_hosts:
- "host.docker.internal:host-gateway" #required so docker connects to host interface (this is for sending emails)
depends_on:
- db
- mongo
ports:
- "127.0.0.1:8090:8090"
env_file:
- .env
db:
image: postgis/postgis:11-3.3
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
env_file:
- .env
mongo:
image: mongo:4.2
restart: always
command: [--auth]
volumes:
- mongodata:/data/db
env_file:
- .env
pgbackups:
image: prodrigestivill/postgres-backup-local
restart: always
volumes:
- /opt/pgbackups:/backups
env_file:
- .env
depends_on:
- db
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=ocportal
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- SCHEDULE=@daily
- BACKUP_KEEP_DAYS=30
- BACKUP_KEEP_WEEKS=12
- BACKUP_KEEP_MONTHS=24
- HEALTHCHECK_PORT=5432
volumes:
pgdata:
mongodata: