Files
FEDEO/push-server/docker-compose.yml

53 lines
1.2 KiB
YAML

services:
postgres:
image: postgres:17
environment:
POSTGRES_DB: fedeo_push
POSTGRES_USER: fedeo_push
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-fedeo_push}
ports:
- "5442:5432"
volumes:
- push_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U fedeo_push -d fedeo_push"]
interval: 10s
timeout: 5s
retries: 5
api:
restart: unless-stopped
build:
context: .
dockerfile: apps/api/Dockerfile
env_file: ${CENTRAL_ENV_FILE:-.env}
environment:
DATABASE_URL: postgres://fedeo_push:${POSTGRES_PASSWORD:-fedeo_push}@postgres:5432/fedeo_push
ports:
- "4020:4020"
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:4020/health"]
interval: 15s
timeout: 5s
retries: 5
admin:
restart: unless-stopped
build:
context: .
dockerfile: apps/admin/Dockerfile
env_file: ${CENTRAL_ENV_FILE:-.env}
environment:
NUXT_PUBLIC_API_BASE: ${PUBLIC_API_BASE_URL:-http://localhost:4020}
ports:
- "3020:3000"
depends_on:
api:
condition: service_healthy
volumes:
push_postgres_data: