-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
48 lines (45 loc) · 934 Bytes
/
docker-compose.dev.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
services:
db:
image: postgres:latest
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
TZ: UTC
ports:
- "5432:5432"
env_file:
- .env
backend:
build:
context: ./backend
dockerfile: Dockerfile
command: bash -c "gunicorn wsgi:application --bind 0.0.0.0:8000"
ports:
- "8000:8000"
env_file:
- .env
depends_on:
- db
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
environment:
TZ: UTC
frontend:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
- /etc/nginx/ssl:/etc/nginx/ssl:ro
- ./frontend/dist:/usr/share/nginx/html
depends_on:
- backend
environment:
TZ: UTC
volumes:
postgres_data: