-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
55 lines (50 loc) · 938 Bytes
/
docker-compose.dev.yaml
File metadata and controls
55 lines (50 loc) · 938 Bytes
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
version: '3.8'
networks:
app_network:
driver: bridge
services:
db:
image: postgres
restart: always
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_HOST_AUTH_METHOD: md5
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- app_network
redis:
container_name: redis
image: redis:latest
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
volumes:
- redis_data:/data
networks:
- app_network
# TODO add celery and celery beat containers
backend:
build: .
restart: always
volumes:
- .:/app
- static_volume:/app/static/
env_file:
- .env
expose:
- "8000"
ports:
- "8000:8000"
depends_on:
- db
- redis
networks:
- app_network
volumes:
db_data:
static_volume:
redis_data: