Files
openfsd/docker-compose.yml
Reese Norris 8ec753ddf9 chore: ship one Docker image for FSD and web
Replace Dockerfile_fsd/Dockerfile_web with a single Dockerfile that
builds /openfsd. Compose runs one service exposing 6809 and 8000.
2026-07-17 13:44:29 -04:00

30 lines
907 B
YAML

services:
openfsd:
image: ghcr.io/renorris/openfsd:latest
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
container_name: openfsd
hostname: openfsd
ports:
- "6809:6809/tcp" # FSD protocol
- "8000:8000/tcp" # Web UI + /api/v1
environment:
DATABASE_SOURCE_NAME: /db/openfsd.db?_pragma=busy_timeout(5000)&_pragma=journal_mode(WAL)
DATABASE_AUTO_MIGRATE: "true"
# Colocated: web uses in-process FSD service HTTP (default 127.0.0.1:13618).
# FSD_HTTP_SERVICE_ADDRESS is only needed when running -web against a remote FSD.
volumes:
- sqlite:/db
# Default CMD runs both services. Examples:
# command: ["/openfsd", "-fsd"] # FSD only
# command: ["/openfsd", "-web"] # web only (set FSD_HTTP_SERVICE_ADDRESS)
networks:
openfsd:
name: openfsd_net
volumes:
sqlite: