20 lines
405 B
YAML
20 lines
405 B
YAML
services:
|
|
web:
|
|
image: ${WEB_IMAGE:-fast-website:local}
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8080:80"
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
ports:
|
|
# Use 6380 to avoid colliding with any locally installed Redis on 6379.
|
|
- "6380:6379"
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 20
|