forked from chartbrew/chartbrew
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-postgres.yml
More file actions
46 lines (43 loc) 路 1.16 KB
/
Copy pathdocker-compose-postgres.yml
File metadata and controls
46 lines (43 loc) 路 1.16 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
services:
db:
image: postgres:16
restart: unless-stopped
environment:
# These values are taken from the .env file
POSTGRES_DB: ${CB_DB_NAME}
POSTGRES_USER: ${CB_DB_USERNAME}
POSTGRES_PASSWORD: ${CB_DB_PASSWORD}
volumes:
- chartbrew-postgres-db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${CB_DB_USERNAME} -d ${CB_DB_NAME}"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:alpine
restart: unless-stopped
environment:
CB_REDIS_HOST: redis
REDIS_PASSWORD: ${CB_REDIS_PASSWORD}
ports:
- 6379:6379
chartbrew:
build: .
restart: unless-stopped
env_file: .env
ports:
# Feel free to remap these ports on the left side to your desired ports.
# If you do change these ports you also need to update them in the VITE_APP_CLIENT_HOST and VITE_APP_API_HOST variables in your .env file
- 4018:4018 # Frontend
- 4019:4019 # API
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
links:
- db
- redis
volumes:
chartbrew-postgres-db: