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