Files
pulsenode/docker-compose.yml
valknar f05ad662d0
CI / Static checks (push) Successful in 37s
CI / Build and push image (push) Skipped
fix: correct real-world deployment details found while writing the stacks entry
- docker-compose.yml used "websecure" as the entrypoint name; the
  actual falcon_network convention (confirmed against the real
  traefik/compose.yml) is "web-secure". Also switched the networks
  block from a hardcoded falcon_network to the same
  compose_network-aliased ${NETWORK_NAME} pattern already used in the
  Traefik labels, instead of only half-respecting that variable.
- config.yml gave the Traefik widget an href, but this deployment runs
  with --api.dashboard=false - there's no dashboard to link to.
2026-08-17 15:38:52 +02:00

51 lines
1.8 KiB
YAML

services:
pulsenode:
build: .
container_name: pulsenode
restart: unless-stopped
read_only: true
tmpfs:
- /tmp
- /app/.next/cache
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
# The container runs as a non-root user, but /var/run/docker.sock is
# owned by root:docker on the host - without joining that GID the
# container gets EACCES connecting to it. Set DOCKER_GID in .env to
# your host's docker group id (`getent group docker | cut -d: -f3`).
group_add:
- "${DOCKER_GID}"
volumes:
# Read-only: PulseNode only inspects/lists containers and reads stats,
# never execs into or writes to them.
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./config:/app/config:ro
env_file: .env
networks:
- compose_network
labels:
- traefik.enable=true
- traefik.docker.network=${NETWORK_NAME}
- traefik.http.middlewares.pulsenode-redirect-web-secure.redirectscheme.scheme=https
- traefik.http.routers.pulsenode-web.rule=Host(`${TRAEFIK_HOST}`)
- traefik.http.routers.pulsenode-web.entrypoints=web
- traefik.http.routers.pulsenode-web.middlewares=pulsenode-redirect-web-secure
- traefik.http.routers.pulsenode-web-secure.rule=Host(`${TRAEFIK_HOST}`)
- traefik.http.routers.pulsenode-web-secure.entrypoints=web-secure
- traefik.http.routers.pulsenode-web-secure.tls.certresolver=resolver
- traefik.http.routers.pulsenode-web-secure.middlewares=security-headers@file,no-index@file
- traefik.http.services.pulsenode-web-secure.loadbalancer.server.port=3000
healthcheck:
test: ["CMD", "node", "healthcheck.mjs"]
interval: 30s
timeout: 5s
start_period: 15s
retries: 3
networks:
compose_network:
name: ${NETWORK_NAME}
external: true