2020-12-07 20:57:20 +01:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
redis:
|
2021-08-10 21:43:39 +02:00
|
|
|
image: redis:6.2.5-alpine
|
2020-12-07 20:57:20 +01:00
|
|
|
command: redis-server
|
|
|
|
environment:
|
|
|
|
- REDIS_REPLICATION_MODE=master
|
|
|
|
ports:
|
|
|
|
- "6379:6379"
|
|
|
|
networks:
|
|
|
|
- teddit_net
|
|
|
|
web:
|
|
|
|
build: .
|
|
|
|
environment:
|
|
|
|
- REDIS_HOST=redis
|
|
|
|
ports:
|
|
|
|
- 8080:8080
|
|
|
|
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:
|
|
|
|
- redis
|
|
|
|
networks:
|
|
|
|
teddit_net:
|