version: '3.8' services: mws: image: mws:latest build: context: . dockerfile: Dockerfile container_name: multiwikiserver ports: - "8080:8080" volumes: # Use bind mount to local store directory - ./store:/data/store # Cache is ephemeral - not persisted environment: # Node environment - NODE_ENV=production restart: unless-stopped command: ["npx", "mws", "listen", "--listener", "host=0.0.0.0", "port=8080"] healthcheck: test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/"] interval: 30s timeout: 10s retries: 3 start_period: 40s