-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (41 loc) · 956 Bytes
/
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
version: "3.2"
services:
db:
restart: always
build: ./postgres
container_name: heimdall_postgres
env_file:
- postgres/database.env
expose:
- 5432
volumes:
- database:/var/lib/postgresql/data/
networks:
- heimdall_network
web:
restart: always
build:
context: ./Heimdall
container_name: heimdall_web
command: gunicorn Heimdall.wsgi --bind 0.0.0.0:8000
volumes:
- ./Heimdall/:/Heimdall/
expose:
- 8000
depends_on:
- db
networks:
- heimdall_network
nginx:
build: ./nginx
container_name: heimdall_nginx
ports:
- "4321:80"
depends_on:
- web
networks:
- heimdall_network
volumes:
database:
networks:
heimdall_network: