-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-develop.yml
More file actions
79 lines (71 loc) · 1.75 KB
/
docker-compose-develop.yml
File metadata and controls
79 lines (71 loc) · 1.75 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
version: '3'
services:
inspector: &inspector
build:
context: .
dockerfile: compose/develop/inspector/Dockerfile
image: ms32035/inspector:develop
depends_on:
- postgres
- redis
volumes:
- .:/app:z
env_file:
- .envs/.develop/.inspector
- .envs/.develop/.postgres
ports:
- "8000:8000"
command: >
bash -c "python manage.py migrate &&
python manage.py runserver_plus 0.0.0.0:8000"
celeryworker:
<<: *inspector
image: ms32035/inspector-worker:develop
build:
context: .
dockerfile: compose/develop/inspector/Dockerfile
args:
BUILD_ENVIRONMENT: worker
ports: []
command: ["celery", "-A", "inspector.taskapp", "worker", "-l", INFO]
environment:
DJANGO_EXTENSIONS_ENABLED: "False"
flower:
<<: *inspector
image: ms32035/inspector:develop
ports:
- "5555:5555"
environment:
DJANGO_EXTENSIONS_ENABLED: "False"
command: ["celery", "-A", "inspector.taskapp", "flower"]
docs:
<<: *inspector
container_name: inspector_develop_docs
env_file:
- ./.envs/.develop/.inspector
volumes:
- ./docs:/docs:z
- ./config:/app/config:z
- ./inspector:/app/inspector:z
ports:
- "9000:9000"
depends_on: []
entrypoint: /usr/bin/make
working_dir: /docs
command: livehtml
postgres:
image: postgres:15-alpine
container_name: inspector_develop_postgres
volumes:
- inspector_develop_postgres_data:/var/lib/postgresql/data
env_file:
- .envs/.develop/.postgres
ports:
- "5432:5432"
redis:
image: redis:6-alpine
container_name: inspector_local_redis
ports:
- "6379:6379"
volumes:
inspector_develop_postgres_data: {}