forked from djangopackages/djangopackages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
80 lines (73 loc) · 1.55 KB
/
compose.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
x-common-settings: &common-settings
build:
context: .
dockerfile: ./dockerfiles/django/Dockerfile-dev
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
env_file:
- .env.local
volumes:
- .:/code
- djpkg_static_dev:/data/static
- djpkg_media_dev:/data/media
services:
django:
<<: *common-settings
command: ["/start-dev.sh"]
init: true
ports:
- "8000:8000"
django-q:
<<: *common-settings
command: ["python", "-m", "manage", "qcluster"]
init: true
postgres:
image: "pgautoupgrade/pgautoupgrade:latest"
env_file:
- .env.local
expose:
- 5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $$POSTGRES_DB -U $$POSTGRES_USER"]
interval: 3s
timeout: 3s
retries: 30
init: true
volumes:
- .:/code
- djpkg_postgres_data_dev:/var/lib/postgresql/data
redis:
image: redis:7
expose:
- 6379
init: true
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 3s
timeout: 3s
retries: 10
docs:
<<: *common-settings
command: ["sh", "-c", "mkdocs serve -f docs/mkdocs.yml --dev-addr 0.0.0.0:4000"]
entrypoint: ""
environment:
FAST_MODE: "true"
LIVE_RELOAD_SUPPORT: "true"
init: true
ports:
- "4000:4000"
profiles:
- docs
utility:
<<: *common-settings
init: true
profiles:
- utility
tty: true
volumes:
djpkg_media_dev: {}
djpkg_postgres_data_dev: {}
djpkg_static_dev: {}