version: "3.8"
services:
redis:
image: redis:6.0.9-alpine3.12
command: redis-server
environment:
- REDIS_REPLICATION_MODE=master
ports:
- "6379:6379"
networks:
- teddit_net
web:
build: .
- REDIS_HOST=redis
- 8080:8080
healthcheck:
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:8080/about"]
interval: 1m
timeout: 3s
depends_on:
- redis
teddit_net: