-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.dev.yml
53 lines (45 loc) · 1.35 KB
/
docker-compose.dev.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
x-service-override: &service-override
env_file:
- path: '.env'
required: false
environment:
THENEWBOSTON_SETTING_DATABASES: '{"default":{"HOST":"db"}}'
depends_on:
db:
condition: service_healthy
services:
db:
image: postgres:16.2-alpine
restart: 'no'
ports:
- 127.0.0.1:5432:5432
environment:
POSTGRES_DB: thenewboston
POSTGRES_USER: thenewboston
POSTGRES_PASSWORD: thenewboston
healthcheck:
test: PGPASSWORD=$${POSTGRES_PASSWORD} pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}
interval: 10s
timeout: 5s
retries: 1
volumes:
- postgresql-data:/var/lib/postgresql/data
redis:
restart: 'no' # so the service is not auto-started after developer's laptop reboot
app:
restart: 'no' # so the service is not auto-started after developer's laptop reboot
<<: *service-override
discord-bot:
restart: 'no' # so the service is not auto-started after developer's laptop reboot
<<: *service-override
celery:
restart: 'no' # so the service is not auto-started after developer's laptop reboot
<<: *service-override
celery-beat:
restart: 'no' # so the service is not auto-started after developer's laptop reboot
<<: *service-override
volumes:
postgresql-data:
driver: local
redis-data:
driver: local