mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-03 18:22:57 +00:00
hot fix #1
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
services:
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
networks:
|
||||
fotbal-network:
|
||||
external: false
|
||||
Reference in New Issue
Block a user