-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·49 lines (45 loc) · 1.2 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
version: "3"
services:
api:
container_name: c2m2-api
image: "code.kathmandulivinglabs.org:5555/c2m2-mongolia/c2m2-api/dev:v1.10.3.2020"
restart: always
env_file:
- ./.env
ports:
- "8080:8080"
depends_on:
- apidb
links:
- apidb:apidb
apidb:
container_name: c2m2mongolia-db-postgres
image: "kartoza/postgis:12.4"
env_file:
- ./.env
ports:
- 5431:5432
volumes:
- ./psql_data:/var/lib/postgresql/data
apidbbackup:
container_name: c2m2mongolia-db-backup
image: "kartoza/pg-backup:13.0"
env_file:
- ./.env
volumes:
- ./backups:/backups
links:
- apidb:apidb
# apicron:
# container_name: cron
# image: "code.kathmandulivinglabs.org:5555/c2m2-mongolia/c2m2-api/dev:v2.26.2.2020"
# volumes:
# - .:/app
# entrypoint: sh /app/entrypoint.sh
# nginx:
# container_name: nginx
# restart: always
# build:
# context: ./nginx
# ports:
# - "80:80"