forked from yogeshojha/rengine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
60 lines (59 loc) · 1.44 KB
/
docker-compose.dev.yml
File metadata and controls
60 lines (59 loc) · 1.44 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
version: '3.8'
services:
db:
restart: always
image: "postgres:12.3-alpine"
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_PORT=5432
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/
networks:
- rengine_network
web:
restart: always
image: docker.pkg.github.com/yogeshojha/rengine/rengine:latest
build: .
command: python3 manage.py runserver 0.0.0.0:8000
environment:
- DEBUG=1
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- db
- redis
networks:
- rengine_network
redis:
image: redis:alpine
networks:
- rengine_network
celery:
restart: always
build: .
command: celery -A reNgine worker -l INFO
environment:
- DEBUG=1
depends_on:
- redis
networks:
- rengine_network
celery-beat:
build: .
command: celery -A reNgine beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler
environment:
- DEBUG=1
depends_on:
- redis
networks:
- rengine_network
networks:
rengine_network:
volumes:
postgres_data: