From 75640eba0da2e3f77752c276e1a1fbb3bc0ab67d Mon Sep 17 00:00:00 2001 From: julien Date: Sat, 19 Jul 2025 17:24:17 +0200 Subject: [PATCH] Test --- docker/docker-compose.prod.yml | 44 +++++++++++++++++----------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.yml index 0ad29ec..91cc791 100644 --- a/docker/docker-compose.prod.yml +++ b/docker/docker-compose.prod.yml @@ -2,26 +2,25 @@ version: '3.8' services: # PostgreSQL Database - postgres: - image: postgres:15-alpine - container_name: tournament-postgres-prod - environment: - POSTGRES_DB: tournament - POSTGRES_USER: tournament_user - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-change_me_in_production} - volumes: - - postgres_data:/var/lib/postgresql/data - - ../prisma/migrations:/docker-entrypoint-initdb.d - ports: - - "127.0.0.1:5432:5432" # Only accessible from localhost - healthcheck: - test: ["CMD-SHELL", "pg_isready -U tournament_user -d tournament"] - interval: 10s - timeout: 5s - retries: 5 - networks: - - tournament-network - restart: unless-stopped + # postgres: + # image: postgres:15-alpine + # container_name: tournament-postgres + # environment: + # POSTGRES_DB: tournament + # POSTGRES_USER: tournament_user + # POSTGRES_PASSWORD: tournament_password + # volumes: + # - postgres_data:/var/lib/postgresql/data + # - ./prisma/migrations:/docker-entrypoint-initdb.d + # ports: + # - "5432:5432" + # healthcheck: + # test: ["CMD-SHELL", "pg_isready -U tournament_user -d tournament"] + # interval: 10s + # timeout: 5s + # retries: 5 + # networks: + # - tournament-network # Tournament Application tournament-app: @@ -30,7 +29,8 @@ services: dockerfile: docker/Dockerfile container_name: tournament-app-prod environment: - - DATABASE_URL=postgresql://tournament_user:${POSTGRES_PASSWORD:-change_me_in_production}@postgres:5432/tournament + - DATABASE_URL=postgresql://admin:puW6KHfe3viQRyR7@sheldon:5432/tournament + # - DATABASE_URL=postgresql://tournament_user:${POSTGRES_PASSWORD:-change_me_in_production}@postgres:5432/tournament - PORT=4000 - JWT_SECRET=${JWT_SECRET:-change_me_in_production} - ADMIN_USERNAME=${ADMIN_USERNAME:-admin} @@ -92,4 +92,4 @@ networks: driver: bridge ipam: config: - - subnet: 172.20.0.0/16 \ No newline at end of file + - subnet: 172.20.0.0/16