teddit/docker-compose.yml

41 lines
848 B
YAML

version: "3.8"
services:
teddit:
container_name: teddit
build: .
environment:
- DOMAIN=teddit.pussthecat.org
- THEME=dark
- USE_HELMET=true
- USE_HELMET_HSTS=true
- TRUST_PROXY=true
- NSFW_ENABLED=false
- POST_COMMENTS_SORT=top
- CACHE_CONTROL=true
- CACHE_MAX_SIZE=10000
- REDIS_HOST=teddit-redis
ports:
- "8080:8080"
networks:
- teddit_net
healthcheck:
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:8080/about"]
interval: 1m
timeout: 3s
depends_on:
- teddit-redis
teddit-redis:
container_name: teddit-redis
image: redis:6.2.5-alpine
command: redis-server
environment:
- REDIS_REPLICATION_MODE=master
networks:
- teddit_net
networks:
teddit_net: