-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
48 lines (45 loc) · 1000 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
version: '3'
services:
webserver:
build: ./webserver
restart: always
expose:
- 5000
volumes:
- ./webserver/flaskapp:/usr/src/app
- staticfiles:/usr/src/app/static
# env_file: .envweb
command: /usr/local/bin/gunicorn wsgi:app -w 2 -b :5000
networks:
- services_network
# depends_on:
# - postgres
nginx:
build: ./nginx
#image: nginx:latest
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
# - ./nginx/ssl:/etc/ssl
- staticfiles:/staticfiles
networks:
- services_network
ports:
- 80:80
- 443:443
depends_on:
- webserver
# postgres:
# restart: always
# image: postgres:latest
# ports:
# - 5432:5432
# volumes:
# - pgdata:/var/lib/postgresql/data/
# env_file: .envdb
# networks:
# - services_network
volumes:
pgdata:
staticfiles:
networks:
services_network: