forked from falconsoft3d/pyerp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (48 loc) · 963 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
47
48
49
50
version: '3.7'
services:
web:
restart: always
build:
context: .
target: python
volumes:
- static_volume:/home/webapp/static
- media_volume:/home/webapp/media
- run:/home/webapp/run
command: bin/gunicorn_start.sh
ports:
- 8080:8000
env_file:
- .env.web
depends_on:
- db
container_name: container-python
db:
restart: always
image: postgres:11.4-alpine
env_file:
- .env.db
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/
container_name: container-postgres
nginx:
restart: always
build:
context: .
target: nginx
volumes:
- static_volume:/home/webapp/static
- media_volume:/home/webapp/media
- run:/home/webapp/run
ports:
- "80:80"
depends_on:
- web
container_name: container-nginx
volumes:
postgres_data:
static_volume:
media_volume:
run: