-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
executable file
·86 lines (80 loc) · 1.58 KB
/
docker-compose-dev.yml
File metadata and controls
executable file
·86 lines (80 loc) · 1.58 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
76
77
78
79
80
81
82
83
84
85
86
version: '3'
services:
db:
image: postgres:14.0
restart: always
environment:
- POSTGRES_USER=fresh_appUser
- POSTGRES_PASSWORD=fresh_appPassword
volumes:
- fresh_app_db_data:/var/lib/postgresql/data
networks:
- fresh_app_backend_tier
redis:
image: redis:latest
restart: always
networks:
- fresh_app_backend_tier
fresh_app:
restart: always
build: .
depends_on:
- db
- redis
env_file: .env
command: python manage.py runserver 0.0.0.0:8009
environment:
- DJANGO_COLLECT_STATIC=off
- DJANGO_MANAGEPY_MIGRATE=off
links:
- db:postgres
- redis
volumes:
- .:/app
ports:
- "8009:8009"
expose:
- "8009"
networks:
- fresh_app_backend_tier
celery:
restart: unless-stopped
build: .
env_file: .env
command: celery -A fresh_app worker -l info
depends_on:
- db
- redis
networks:
- fresh_app_backend_tier
beat:
restart: unless-stopped
build: .
env_file: .env
command: celery -A fresh_app beat -l info
depends_on:
- redis
networks:
- fresh_app_backend_tier
flower:
image: mher/flower
environment:
- FLOWER_PORT=5555
- CELERY_BROKER_URL=redis://redis:6379
ports:
- 5555:5555
restart: unless-stopped
expose:
- "5555"
depends_on:
- redis
networks:
- fresh_app_backend_tier
volumes:
fresh_app_db_data:
driver: local
static_volume:
driver: local
networks:
fresh_app_backend_tier:
driver: bridge