forked from curtmorgan3/quest-bound
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (60 loc) · 1.23 KB
/
Copy pathdocker-compose.yml
File metadata and controls
65 lines (60 loc) · 1.23 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
55
56
57
58
59
60
61
62
63
64
65
services:
client:
build:
context: ./client
container_name: quest-bound-client
depends_on:
server:
condition: service_completed_successfully
networks:
- quest-bound
ports:
- 5173:5173
server:
build:
context: ./server
container_name: quest-bound-server
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_completed_successfully
networks:
- quest-bound
ports:
- 8000:8000
redis:
image: redis/redis-stack-server:latest
container_name: quest-bound-redis
restart: always
ports:
- 6379:6379
networks:
- quest-bound
postgres:
image: postgres:17
restart: always
container_name: quest-bound-db
env_file:
- .env
environment:
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d ${POSTGRES_DB}"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
ports:
- 5432:5432
volumes:
- pg-data:/var/lib/postgresql/data
networks:
- quest-bound
volumes:
pg-data:
networks:
quest-bound: