feat: Consolidate client and server into a single Docker image and update Docker Compose configuration.

This commit is contained in:
2026-01-06 17:03:38 +00:00
parent f587ab6053
commit 80c936a43b
3 changed files with 45 additions and 21 deletions

View File

@@ -1,8 +1,8 @@
services:
server:
app:
build:
context: .
dockerfile: server/Dockerfile
dockerfile: Dockerfile
expose:
- "3000"
volumes:
@@ -10,6 +10,7 @@ services:
environment:
- PORT=3000
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-123456}
- NODE_ENV=production
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"]
@@ -18,23 +19,5 @@ services:
retries: 3
start_period: 10s
client:
build:
context: ./client
dockerfile: Dockerfile
# No ports binding - Coolify's reverse proxy handles external traffic
expose:
- "80"
depends_on:
server:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
volumes:
eventy_data: