2020-12-07 20:57:20 +01:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
2021-11-04 16:05:31 +01:00
|
|
|
|
|
|
|
teddit:
|
|
|
|
container_name: teddit
|
2020-12-07 20:57:20 +01:00
|
|
|
build: .
|
|
|
|
environment:
|
2021-11-04 16:05:31 +01:00
|
|
|
- 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
|
2020-12-07 20:57:20 +01:00
|
|
|
ports:
|
2021-11-04 16:05:31 +01:00
|
|
|
- "8080:8080"
|
2020-12-07 20:57:20 +01:00
|
|
|
networks:
|
|
|
|
- teddit_net
|
2021-03-12 18:06:34 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:8080/about"]
|
|
|
|
interval: 1m
|
|
|
|
timeout: 3s
|
2020-12-07 20:57:20 +01:00
|
|
|
depends_on:
|
2021-11-04 16:05:31 +01:00
|
|
|
- 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
|
|
|
|
|
2020-12-07 20:57:20 +01:00
|
|
|
networks:
|
|
|
|
teddit_net:
|