d562b07027
+ add boilerplate
35 lines
761 B
YAML
35 lines
761 B
YAML
services:
|
|
db:
|
|
image: postgres:17-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: barotrauma-admin
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres -d barotrauma-admin"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
admin:
|
|
build: .
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
DATABASE_JDBC_URL: jdbc:postgresql://db:5432/barotrauma-admin
|
|
DATABASE_USER: postgres
|
|
DATABASE_PASSWORD: postgres
|
|
DATABASE_POOL_SIZE: "10"
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
pgdata:
|