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:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: server/Dockerfile
|
dockerfile: server/Dockerfile
|
||||||
ports:
|
# Remove fixed port binding for production - let Coolify/reverse proxy handle routing
|
||||||
- "3000:3000"
|
# Uncomment below for local development:
|
||||||
|
# ports:
|
||||||
|
# - "3000:3000"
|
||||||
|
expose:
|
||||||
|
- "3000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./server:/app/server
|
- eventy_data:/app/data
|
||||||
- ./eventy.db:/app/eventy.db # Persist DB or mount existing one
|
|
||||||
environment:
|
environment:
|
||||||
- PORT=3000
|
- PORT=3000
|
||||||
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-123456}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
client:
|
client:
|
||||||
build:
|
build:
|
||||||
context: ./client
|
context: ./client
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
ports:
|
# Remove fixed port binding for production - let Coolify/reverse proxy handle routing
|
||||||
- "5173:5173"
|
# Uncomment below for local development:
|
||||||
volumes:
|
# ports:
|
||||||
- ./client:/app
|
# - "5173:5173"
|
||||||
|
expose:
|
||||||
|
- "5173"
|
||||||
depends_on:
|
depends_on:
|
||||||
- server
|
- server
|
||||||
environment:
|
environment:
|
||||||
- VITE_API_URL=http://server:3000
|
- VITE_API_URL=http://server:3000
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
eventy_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user