-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (45 loc) · 916 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.7"
services:
web:
build: .
volumes:
- ./services/web/:/usr/src/app/
ports:
- 5000:5000
depends_on:
- db
- ui
environment:
- PYTHONUNBUFFERED=1
ui:
image: covid-hackathon-ui:latest
expose:
- "80"
environment:
- "API_URL=http://web:5000"
db:
image: postgres:latest
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=help_directory
- POSTGRES_HOST_AUTH_METHOD=trust
restart: always
networks:
- default
nginx:
image: nginx:latest
container_name: production_nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./nginx/cache/:/etc/nginx/cache
- /etc/letsencrypt/:/etc/letsencrypt/
ports:
- 80:80
- 443:443
volumes:
postgres_data:
certificates: