-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.debug.yml
More file actions
54 lines (49 loc) · 1.05 KB
/
docker-compose.debug.yml
File metadata and controls
54 lines (49 loc) · 1.05 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
version: '3.7'
services:
fastapi-starter-template:
container_name: fastapi-starter-template
image: fastapi-starter-template
env_file:
- .env
build:
context: .
dockerfile: Dockerfile.debug
volumes:
- ./:/src
ports:
- "16000:8000"
- "5678:5678"
depends_on:
app_db:
condition: service_healthy
app_db:
container_name: app_db
hostname: app_db
image: library/postgres:14.1
env_file:
- .env
volumes:
- app_pg_data:/var/lib/postgresql/data
- app_pg_data_backups:/backups
- ./scripts/postgres:/scripts
ports:
- "65432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $POSTGRES_USER"]
interval: 10s
timeout: 5s
retries: 5
app_redis:
image: redis:6.2-alpine
hostname: redis
container_name: app_redis
command:
- 'redis-server'
- '--requirepass myStrongPassword'
ports:
- 36379:6379
volumes:
app_pg_data:
driver: "local"
app_pg_data_backups:
driver: "local"