forked from horilla-opensource/horilla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
39 lines (37 loc) · 882 Bytes
/
docker-compose.yaml
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
version: '3.8'
services:
server:
build:
context: .
dockerfile: Dockerfile
ports:
- 8080:8080
restart: unless-stopped
environment:
DATABASE_URL: "postgres://postgres:postgres@db:5432/horilla"
command: ./entrypoint.sh
volumes:
- ./horilla:/app/horilla
depends_on:
db:
condition: service_healthy
db:
image: postgres:16-bullseye
environment:
POSTGRES_DB: horilla
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256"
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- 5432:5432
restart: unless-stopped
volumes:
- horilla-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
horilla-data: