Files
RedditBot/docker-compose.yml
T
jjbruntonandClaude Opus 4.7 90d81b840f Pin DNS to 1.1.1.1/8.8.8.8 in docker-compose
Chromium in the container was failing with ERR_INTERNET_DISCONNECTED
when navigating to Reddit. Override container DNS to public resolvers
so the browser can reach reddit.com / chat.reddit.com.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-22 19:00:01 +01:00

25 lines
711 B
YAML

version: '3.8'
services:
reddit-bot:
build: .
container_name: reddit-bot
restart: unless-stopped
dns:
- 1.1.1.1
- 8.8.8.8
# Mount the data directory to persist the database and browser session
volumes:
- ./data:/app/data
ports:
- "3000:3000" # Web dashboard
- "6080:6080" # noVNC for human login
environment:
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
- REDDIT_USERNAME=${REDDIT_USERNAME}
- REDDIT_PASSWORD=${REDDIT_PASSWORD}
# Chromium runs headed under Xvfb so a human can complete login over noVNC.
- BROWSER_HEADLESS=false
# Required to lock down the VNC endpoint.
- VNC_PASSWORD=${VNC_PASSWORD}