26 lines
536 B
YAML
26 lines
536 B
YAML
services:
|
|
jetstream:
|
|
build: .
|
|
restart: unless-stopped
|
|
command: ["sh", "-c", "deno task migrate && deno task jetstream:prod"]
|
|
volumes:
|
|
- ${DATA_VOLUME:-data}:/data
|
|
|
|
api:
|
|
build: .
|
|
restart: unless-stopped
|
|
command: ["deno", "task", "server:prod"]
|
|
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:
|