Test
This commit is contained in:
@@ -2,25 +2,25 @@ version: '3.8'
|
||||
|
||||
services:
|
||||
# PostgreSQL Database
|
||||
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
|
||||
# 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:
|
||||
@@ -29,7 +29,8 @@ services:
|
||||
dockerfile: docker/Dockerfile
|
||||
container_name: tournament-app
|
||||
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
|
||||
- JWT_SECRET=your-super-secret-jwt-key-change-in-production
|
||||
- ADMIN_USERNAME=admin
|
||||
|
||||
Reference in New Issue
Block a user