This commit is contained in:
Tomas Dvorak
2026-01-26 08:13:18 +01:00
parent aa036b6550
commit dfc079288f
505 changed files with 95755 additions and 5712 deletions
+53 -1
View File
@@ -35,8 +35,11 @@ services:
restart: unless-stopped
networks:
- fotbal-network
dns:
- 8.8.8.8
- 8.8.4.4
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8080/api/v1/health"]
test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/health"]
interval: 30s
timeout: 10s
retries: 3
@@ -86,6 +89,55 @@ services:
retries: 3
start_period: 10s
eshop-backend:
build:
context: .
dockerfile: Dockerfile.eshop.backend
container_name: myclub-eshop-backend
env_file:
- .env
environment:
- DATABASE_URL=postgres://postgres:postgres@db:5432/fotbal_club?sslmode=disable
- PORT=8080
- RUN_MIGRATIONS=false
- SEED_DATABASE=false
depends_on:
db:
condition: service_healthy
volumes:
- ./uploads:/app/uploads
- ./cache:/app/cache
networks:
- fotbal-network
ports:
- "${ESHOP_BACKEND_PORT:-8082}:8080"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8080/api/v1/eshop/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
profiles:
- eshop
eshop-frontend:
build:
context: ./eshop/frontend
dockerfile: Dockerfile
container_name: myclub-eshop-frontend
depends_on:
- eshop-backend
environment:
- REACT_APP_API_URL=/api/v1/eshop
ports:
- "${ESHOP_FRONTEND_PORT:-3100}:80"
restart: unless-stopped
networks:
- fotbal-network
profiles:
- eshop
db:
image: postgres:15-alpine
container_name: myclub-db