-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
44 lines (44 loc) · 985 Bytes
/
docker-compose.yaml
File metadata and controls
44 lines (44 loc) · 985 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
41
42
43
44
services:
app:
image: chat-manager-bot:latest
build:
context: .
args:
DOCKER_BUILDKIT: 1
restart: unless-stopped
env_file:
- .env
environment:
- PG_HOST=postgres
- PG_PORT=5432
ports:
- "8081:8081"
volumes:
- ./logs:/application/logs
depends_on:
- postgres
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8081/actuator/health || exit 1
interval: 30s
timeout: 5s
start_period: 30s
retries: 5
postgres:
image: postgres:16
restart: no
ports:
- "${PG_PORT}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${PG_USER}
POSTGRES_PASSWORD: ${PG_PASSWORD}
POSTGRES_DB: ${PG_DB}
healthcheck:
test: pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB
interval: 10s
timeout: 5s
start_period: 10s
retries: 5
volumes:
postgres_data: