-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
75 lines (69 loc) · 1.47 KB
/
docker-compose.dev.yml
File metadata and controls
75 lines (69 loc) · 1.47 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
services:
db:
image: postgres:15-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- '5432:5432' # Exposed for DBeaver database analysis
redis:
image: redis:7-alpine
ports:
- '6379:6379'
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
env_file:
- .env.dev
environment:
- RUN_MIGRATIONS=1
depends_on:
- db
- redis
ports:
- '8000:8000'
volumes:
- ./backend:/app
- media_data:/app/media
command: python manage.py runserver 0.0.0.0:8000
celery:
build:
context: ./backend
dockerfile: Dockerfile.dev
env_file:
- .env.dev
volumes:
- ./backend:/app
depends_on:
- db
- redis
command: celery -A config worker -l info
celery-beat:
build:
context: ./backend
dockerfile: Dockerfile.dev
env_file:
- .env.dev
volumes:
- ./backend:/app
depends_on:
- db
- redis
command: celery -A config beat -l info
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
volumes:
- ./frontend:/app
- /app/node_modules # Doing this unsyncs node_modules folder from host machine
ports:
- '3000:5173'
command: npm run dev -- --host
volumes:
postgres_data:
media_data: