Files
is-it-christmas/docker/docker-compose.yml
Julien Lengrand-Lambert 16ae2a1430 Creating the project
2025-11-11 10:06:56 +01:00

33 lines
785 B
YAML

services:
backend:
build:
context: ..
dockerfile: docker/Dockerfile.backend
container_name: christmas-backend
ports:
- "8080:8080"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/api/christmas"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend:
build:
context: ..
dockerfile: docker/Dockerfile.frontend
container_name: christmas-frontend
ports:
- "80:80"
depends_on:
- backend
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s