version: "3.9" services: newtube: build: . image: newtube:latest container_name: newtube ports: - "4000:4000" environment: NODE_ENV: production # Optional: configure API server PORT: 4000 # Optional: secrets for Twitch etc. (if you prefer server env) # TWITCH_CLIENT_ID: "" # TWITCH_CLIENT_SECRET: "" # YOUTUBE_API_KEY: "" volumes: # Persist the SQLite database and download temp dir outside the image - ./db:/app/db - ./tmp/downloads:/app/tmp/downloads restart: unless-stopped