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