services: magpie-api: build: . container_name: magpie-api restart: unless-stopped network_mode: host env_file: .env volumes: - magpie-data:/data - /dev/shm:/dev/shm # needed for Chrome in Docker environment: - DB_PATH=/data/magpie.db - REDDIT_SESSION_FILE=/data/session.json magpie-web: image: node:20-slim container_name: magpie-web restart: unless-stopped working_dir: /app command: sh -c "npm install && npm run dev" network_mode: host volumes: - ./frontend:/app volumes: magpie-data: