This commit is contained in:
magdo
2025-11-25 00:14:58 +01:00
parent bf9503c7be
commit 4d2895664e
4 changed files with 80 additions and 2 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ WORKDIR /app
# Copy package files
COPY package.json package-lock.json* ./
# Install dependencies
RUN npm ci --only=production
# Install dependencies (including devDependencies needed for build)
RUN npm ci
# Copy source code
COPY . .
@@ -0,0 +1,14 @@
{
"Servers": {
"1": {
"Name": "SerpentRace Production",
"Group": "Servers",
"Host": "postgres",
"Port": 5432,
"MaintenanceDB": "serpentrace",
"Username": "postgres",
"SSLMode": "prefer",
"Comment": "SerpentRace Production Database"
}
}
}
@@ -132,6 +132,45 @@ services:
timeout: 5s
retries: 5
# Redis Commander for internal administration
redis-commander:
image: rediscommander/redis-commander:latest
container_name: serpentrace-redis-commander-dev
restart: unless-stopped
ports:
- "8081:8081"
environment:
- REDIS_HOSTS=local:redis:6379
depends_on:
redis:
condition: service_healthy
networks:
- serpentrace-network
# Database administration tool for internal administration
pgadmin:
image: dpage/pgadmin4:latest
container_name: serpentrace-pgadmin
restart: unless-stopped
ports:
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: admin@serpentrace.dev
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_CONFIG_SERVER_MODE: 'False'
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
PGADMIN_CONFIG_WTF_CSRF_ENABLED: 'False'
volumes:
- pgadmin_data:/var/lib/pgadmin
- ./deployment/pgadmin_servers_deployment.json:/pgadmin4/servers.json:ro
depends_on:
postgres:
condition: service_healthy
networks:
- serpentrace-network
volumes:
postgres_data:
driver: local
@@ -141,6 +180,8 @@ volumes:
driver: local
backend_logs:
driver: local
pgadmin_data:
driver: local
networks:
serpentrace-network: