-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
executable file
·72 lines (66 loc) · 1.45 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
66
67
68
69
70
71
72
version: "3.9"
services:
postgis:
image: geonode/postgis:15
container_name: postgis4healthfacilities
volumes:
- ./init-db:/docker-entrypoint-initdb.d/
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
ports:
- "5432:5432"
restart: always
networks:
- healthfacilities-api
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
container_name: nginx4heathfacilities
restart: always
depends_on:
- client
ports:
- 80:80
networks:
- healthfacilities-api
django:
build:
context: .
dockerfile: Dockerfile
container_name: django4heathfacilities
env_file:
- .env
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./:/home/geouser/healthfacilities
ports:
- "8000:8000"
restart: always
depends_on:
- postgis
networks:
- healthfacilities-api
client:
build:
context: ./client
dockerfile: Dockerfile
container_name: client4heathfacilities
volumes:
- ./client:/usr/src/app
- /usr/src/app/node_modules
environment:
- NODE_ENV=development
depends_on:
- django
networks:
- healthfacilities-api
networks:
healthfacilities-api:
driver: bridge
volumes:
postgres_data: