-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (39 loc) · 851 Bytes
/
docker-compose.yaml
File metadata and controls
40 lines (39 loc) · 851 Bytes
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
version: "3.9"
services:
app:
container_name: gooddelo_app
build:
context: .
image: goodwin954/gooddelo
ports:
- "8000:8000"
depends_on:
pg:
condition: service_healthy
redis:
condition: service_healthy
redis:
container_name: gooddelo_redis
image: redis:latest
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
pg:
container_name: gooddelo_pg
image: postgres:latest
environment:
POSTGRES_USER: gooddelo
POSTGRES_PASSWORD: gooddelo
POSTGRES_DB: gooddelo
PGPORT: 5432
ports:
- "5435:5432"
volumes:
- ./pg_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U gooddelo" ]
interval: 5s
timeout: 5s
retries: 5