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: