feat: Replace fixed port mappings with exposed ports, switch to named volumes, and add ADMIN_PASSWORD in docker-compose.
This commit is contained in:
@@ -3,25 +3,34 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: server/Dockerfile
|
||||
ports:
|
||||
- "3000:3000"
|
||||
# Remove fixed port binding for production - let Coolify/reverse proxy handle routing
|
||||
# Uncomment below for local development:
|
||||
# ports:
|
||||
# - "3000:3000"
|
||||
expose:
|
||||
- "3000"
|
||||
volumes:
|
||||
- ./server:/app/server
|
||||
- ./eventy.db:/app/eventy.db # Persist DB or mount existing one
|
||||
- eventy_data:/app/data
|
||||
environment:
|
||||
- PORT=3000
|
||||
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-123456}
|
||||
restart: unless-stopped
|
||||
|
||||
client:
|
||||
build:
|
||||
context: ./client
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "5173:5173"
|
||||
volumes:
|
||||
- ./client:/app
|
||||
# Remove fixed port binding for production - let Coolify/reverse proxy handle routing
|
||||
# Uncomment below for local development:
|
||||
# ports:
|
||||
# - "5173:5173"
|
||||
expose:
|
||||
- "5173"
|
||||
depends_on:
|
||||
- server
|
||||
environment:
|
||||
- VITE_API_URL=http://server:3000
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
eventy_data:
|
||||
|
||||
Reference in New Issue
Block a user