Files
portabase/docker-compose.prod.yml
T

46 lines
966 B
YAML
Raw Permalink Normal View History

2024-12-31 16:42:19 +01:00
services:
app:
2026-06-27 17:08:38 +02:00
# build:
# context: .
# dockerfile: docker/dockerfile/Dockerfile
# target: prod
2026-05-17 09:52:58 +02:00
image: portabase/portabase:1
2024-12-31 16:42:19 +01:00
ports:
2026-06-27 17:08:38 +02:00
- "8887:80"
2025-11-08 20:07:49 +01:00
environment:
TZ: "Europe/Paris"
2025-01-01 22:28:21 +01:00
env_file:
- .env
volumes:
- portabase-data:/data
2024-12-31 16:42:19 +01:00
depends_on:
db:
condition: service_healthy
container_name: portabase-app-prod
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost/api/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 60s
2024-12-31 16:42:19 +01:00
db:
image: postgres:16-alpine
ports:
- "5433:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=devdb
- POSTGRES_USER=devuser
- POSTGRES_PASSWORD=changeme
healthcheck:
2026-06-27 17:08:38 +02:00
test: ["CMD-SHELL", "pg_isready -U devuser -d devdb"]
2024-12-31 16:42:19 +01:00
interval: 10s
timeout: 5s
retries: 5
volumes:
portabase-data:
2024-12-31 16:42:19 +01:00
postgres-data: