-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (39 loc) · 953 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
version: '3'
services:
db:
image: postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ./postgres-data:/var/lib/postgresql/data
redis:
restart: always
image: redis:latest
expose:
- "6379"
backend:
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- static_volume:/code/static
env_file:
./backend/.env
command: gunicorn --workers=3 --bind 0.0.0.0:8000 conf.wsgi
depends_on:
- db
- redis
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- static_volume:/usr/share/nginx/static
ports:
- "80:80"
depends_on:
- backend
volumes:
static_volume: