-
Notifications
You must be signed in to change notification settings - Fork 111
/
docker-compose.yml
66 lines (59 loc) · 1.37 KB
/
docker-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
version: "3.7"
x-playbase-common:
&playbase-common
image: playbase:local
volumes:
- .:/opt/playbase
environment:
&playbase-common-env
DJANGO_SECRET_KEY: justtesting
depends_on:
- postgres
- redis
services:
postgres:
image: postgres:16
restart: always
environment:
- DATABASE_HOST=127.0.0.1
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- ./compose/postgres/docker_postgres_init.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql
- ./.volume/postgres-data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:latest
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 30s
retries: 50
restart: always
playbase-web:
<<: *playbase-common
command: djcli runserver 0.0.0.0:8000
ports:
- "8000:8000"
playbase-toolbox:
<<: *playbase-common
command: [ "djcli" ]
# playbase-worker:
# <<: *playbase-common
# command: [ "djcli", "worker" ]
#
# playbase-beat:
# <<: *playbase-common
# command: [ "djcli", "beat" ]
#
# playbase-flower:
# <<: *playbase-common
# command: [ "djcli", "flower" ]
volumes:
postgres_data_dev: { }
postgres_backup_dev: { }