This commit is contained in:
2025-07-19 12:24:28 +02:00
parent 2e7957d0a0
commit 9d152d813a

View File

@@ -2,25 +2,25 @@ version: '3.8'
services: services:
# PostgreSQL Database # PostgreSQL Database
postgres: # postgres:
image: postgres:15-alpine # image: postgres:15-alpine
container_name: tournament-postgres # container_name: tournament-postgres
environment: # environment:
POSTGRES_DB: tournament # POSTGRES_DB: tournament
POSTGRES_USER: tournament_user # POSTGRES_USER: tournament_user
POSTGRES_PASSWORD: tournament_password # POSTGRES_PASSWORD: tournament_password
volumes: # volumes:
- postgres_data:/var/lib/postgresql/data # - postgres_data:/var/lib/postgresql/data
- ./prisma/migrations:/docker-entrypoint-initdb.d # - ./prisma/migrations:/docker-entrypoint-initdb.d
ports: # ports:
- "5432:5432" # - "5432:5432"
healthcheck: # healthcheck:
test: ["CMD-SHELL", "pg_isready -U tournament_user -d tournament"] # test: ["CMD-SHELL", "pg_isready -U tournament_user -d tournament"]
interval: 10s # interval: 10s
timeout: 5s # timeout: 5s
retries: 5 # retries: 5
networks: # networks:
- tournament-network # - tournament-network
# Tournament Application # Tournament Application
tournament-app: tournament-app:
@@ -29,7 +29,8 @@ services:
dockerfile: docker/Dockerfile dockerfile: docker/Dockerfile
container_name: tournament-app container_name: tournament-app
environment: environment:
- DATABASE_URL=postgresql://tournament_user:tournament_password@postgres:5432/tournament - DATABASE_URL=postgresql://admin:puW6KHfe3viQRyR7@sheldon:5432/tournament
# - DATABASE_URL=postgresql://tournament_user:tournament_password@postgres:5432/tournament
- PORT=4000 - PORT=4000
- JWT_SECRET=your-super-secret-jwt-key-change-in-production - JWT_SECRET=your-super-secret-jwt-key-change-in-production
- ADMIN_USERNAME=admin - ADMIN_USERNAME=admin