singularity-forge/docker/docker-compose.vega.yaml
Mikael Hugo 6d8fc62243
Some checks are pending
sf self-deploy / build, test, and publish server image (push) Waiting to run
sf self-deploy / deploy test and probe (push) Blocked by required conditions
sf self-deploy / promote prod (push) Blocked by required conditions
fix: use shared sf webserver project config
2026-05-17 22:09:28 +02:00

43 lines
1.5 KiB
YAML

services:
sf-server:
build:
context: ..
dockerfile: docker/Dockerfile.source-server
container_name: ${SF_VEGA_CONTAINER:-sf-server-vega}
working_dir: /opt/sf
user: "${PUID:-1000}:${PGID:-1000}"
ports:
- "${SF_VEGA_BIND:-127.0.0.1}:4000:4000"
volumes:
- ../:/opt/sf
- ${SF_WORKSPACE_DIR:-..}:/workspace
- ${SF_WORKSPACES_DIR:-..}:/workspaces
- ${SF_WORKSPACES_DIR:-/home/mhugo/code}:${SF_WORKSPACES_DIR:-/home/mhugo/code}
- ${HOME}/.sf:/home/node/.sf
- ${HOME}/.gitconfig:/home/node/.gitconfig:ro
environment:
HOME: /home/node
NODE_ENV: development
SF_SOURCE_ROOT: /opt/sf
SF_RUNTIME_SOURCE_ROOT: /opt/sf
SF_RELEASE_MANIFEST: /opt/sf/dist/sf-release-manifest.json
SF_WEB_PROJECT_CWD: ${SF_WORKSPACE_DIR:-/home/mhugo/code/singularity-forge}
SF_WORKSPACES_DIR: ${SF_WORKSPACES_DIR:-/home/mhugo/code}
SF_WEB_HOST: 0.0.0.0
SF_WEB_PORT: "4000"
HOSTNAME: 0.0.0.0
PORT: "4000"
SF_WEB_ALLOWED_ORIGINS: ${SF_WEB_ALLOWED_ORIGINS:-http://127.0.0.1:4000,http://localhost:4000}
SF_DEV_SERVER_WATCH: "1"
command:
- node
- /opt/sf/dist/web/standalone/server.js
restart: unless-stopped
healthcheck:
test:
- CMD-SHELL
- node -e "fetch('http://127.0.0.1:4000/api/healthz').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
interval: 15s
timeout: 5s
retries: 12
start_period: 60s