S16 postgresql opslag added
All checks were successful
Build, test and publish / verify (push) Successful in 7m31s
All checks were successful
Build, test and publish / verify (push) Successful in 7m31s
This commit is contained in:
@@ -1,6 +1,27 @@
|
||||
# Images are resolved to registry digests before replacement. Never use :main here.
|
||||
services:
|
||||
database:
|
||||
image: postgres:17.6
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: agiledancers
|
||||
POSTGRES_USER: agiledancers
|
||||
POSTGRES_PASSWORD: ${DATABASE_PASSWORD:?Required database password}
|
||||
volumes:
|
||||
- database-data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', 'pg_isready -U agiledancers -d agiledancers']
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 12
|
||||
backend:
|
||||
depends_on:
|
||||
database:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
DATABASE_URL: jdbc:postgresql://database:5432/agiledancers
|
||||
DATABASE_USER: agiledancers
|
||||
DATABASE_PASSWORD: ${DATABASE_PASSWORD:?Required database password}
|
||||
image: ${BACKEND_IMAGE:?Required verified backend digest}
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
@@ -32,3 +53,7 @@ services:
|
||||
options:
|
||||
max-size: '10m'
|
||||
max-file: '3'
|
||||
|
||||
volumes:
|
||||
database-data:
|
||||
name: agiledancers-production-database
|
||||
|
||||
Reference in New Issue
Block a user