-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
64 lines (57 loc) · 1.09 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
x-env:
&env-file
- ./.env.dev
services:
web:
build:
context: .
container_name: kcc3_web
volumes:
- static_volume:/app/static
- media_volume:/app/media
depends_on:
- db
- beat
env_file: *env-file
worker:
build:
context: .
container_name: kcc3_worker
command: celery -A kcc3 worker --loglevel=info
depends_on:
- db
- rabbitmq
env_file: *env-file
beat:
build:
context: .
container_name: kcc3_beat
command: celery -A kcc3 beat -S django --loglevel=info
depends_on:
- db
- rabbitmq
- worker
env_file: *env-file
db:
image: postgres:16
container_name: kcc3_db
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file: *env-file
rabbitmq:
image: rabbitmq:3
container_name: kcc3_rabbitmq
proxy:
build: ./nginx
container_name: kcc3_proxy
volumes:
- static_volume:/app/static
- media_volume:/app/media
ports:
- "8000:80"
depends_on:
- web
volumes:
postgres_data:
static_volume:
media_volume: