anonsubmit/docker-compose.yml

37 lines
No EOL
877 B
YAML

services:
web:
image: minecon724/anonchat:latest
build: .
ports:
- "5000:5000"
env_file:
- .env
depends_on:
- db
- redis
environment:
- DATABASE_URL=postgresql://anonchat:anonchat@db:5432/anonchat
- REDIS_URL=redis://redis:6379/0
- SECRET_KEY=change-this-secret-key-in-production
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=change-this-password-in-production
- BEHIND_PROXY=false # Set to true if you're running behind a reverse proxy
db:
image: postgres:15
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=anonchat
- POSTGRES_PASSWORD=anonchat
- POSTGRES_DB=anonchat
redis:
image: redis:7-alpine
volumes:
- redis_data:/data
command: redis-server --appendonly yes
volumes:
postgres_data:
redis_data: