mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
46 lines
975 B
YAML
46 lines
975 B
YAML
name: portabase-prod
|
|
|
|
services:
|
|
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/dockerfile/Dockerfile
|
|
target: prod
|
|
ports:
|
|
- '8887:80'
|
|
environment:
|
|
TZ: "Europe/Paris"
|
|
volumes:
|
|
- portabase-prod-data:/data
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: [ "CMD-SHELL", "curl -f http://localhost/api/health" ]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 60s
|
|
extra_hosts:
|
|
- "localhost:host-gateway"
|
|
|
|
db:
|
|
image: postgres:17-alpine
|
|
ports:
|
|
- "5433:5432"
|
|
volumes:
|
|
- portabase-prod-postgres-data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_DB=devdb
|
|
- POSTGRES_USER=devuser
|
|
- POSTGRES_PASSWORD=changeme
|
|
healthcheck:
|
|
test: [ "CMD-SHELL", "pg_isready -U devuser -d devdb" ]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
portabase-prod-data:
|
|
portabase-prod-postgres-data: |