Files
ClubLogos/docker-compose.yml
Tomáš Dvořák 0fc92f8464 first commit
2025-10-02 12:39:28 +02:00

38 lines
738 B
YAML

version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: czech-clubs-backend
ports:
- "8080:8080"
environment:
- PORT=8080
volumes:
- ./data/logos:/root/logos
- ./data/db:/root/data
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: czech-clubs-frontend
ports:
- "3000:80"
depends_on:
- backend
restart: unless-stopped
volumes:
logos:
db: