feat: Consolidate client and server into a single Docker image and update Docker Compose configuration.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user