Files
remanso-jetstream/docker-compose.yml
2026-03-21 12:33:07 +01:00

39 lines
803 B
YAML

services:
migrate:
build: .
restart: "no"
command: ["deno", "task", "migrate"]
volumes:
- ${DATA_VOLUME:-data}:/data
jetstream:
build: .
restart: unless-stopped
command: ["deno", "task", "jetstream:prod"]
depends_on:
migrate:
condition: service_completed_successfully
volumes:
- ${DATA_VOLUME:-data}:/data
api:
build: .
restart: unless-stopped
command: ["deno", "task", "server:prod"]
depends_on:
migrate:
condition: service_completed_successfully
expose:
- "8080"
volumes:
- ${DATA_VOLUME:-data}:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 10m
timeout: 5s
retries: 3
start_period: 15s
volumes:
data: