2021-11-04 16:13:57 +01:00
# This docker-compose file is made for development purpose and build from source, if you want to use teddit in production, the README contains a production-ready docker-compose setup.
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
- 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 :