forked from python-spain/web-pycones
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
59 lines (52 loc) · 986 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
51
52
53
54
55
56
57
58
# Docker-compose file to launch the web app.
version: '2'
volumes:
db-data:
driver: local
services:
db:
image: postgres:9.6
container_name: pydaygal-db
volumes:
- db-data:/var/lib/postgresql
env_file: .env
networks:
- back-tier
webapp:
build:
context: .
dockerfile: compose/webapp/Dockerfile
image: pydaygal/webapp
container_name: pydaygal-webapp
command: /gunicorn.sh
volumes:
- .:/app
depends_on:
- db
env_file: .env
networks:
- back-tier
# nginx:
# build:
# context: .
# dockerfile: compose/nginx/Dockerfile
# image: pydaygal/nginx
# container_name: pydaygal-nginx
# volumes:
# - ./public:/public
# - ./pydaygal/media:/media
# ports:
# - "80:80"
# - "443:443"
#
# depends_on:
# - webapp
# networks:
# - front-tier
# - back-tier
#
networks:
front-tier:
driver: bridge
back-tier:
driver: bridge