feat: update Dockerfiles to use Node 25-alpine and enhance nginx configuration for API proxying
This commit is contained in:
@@ -19,15 +19,10 @@ services:
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
env_file:
|
||||
- ./nest-backend/.env
|
||||
environment:
|
||||
DATABASE_URL: postgresql://nest_user:nest_password@db:5432/nest_db
|
||||
JWT_SECRET: ${JWT_SECRET:-change_me_in_production}
|
||||
PORT: 3000
|
||||
ADMIN_USERNAME: ${ADMIN_USERNAME:-admin}
|
||||
ADMIN_EMAIL: ${ADMIN_EMAIL:-admin@crowmate.fr}
|
||||
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-change_me}
|
||||
FRONT_ORIGIN: ${FRONT_ORIGIN:-http://localhost:5173}
|
||||
INTRA_ORIGIN: ${INTRA_ORIGIN:-http://localhost:5174}
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
@@ -39,12 +34,18 @@ services:
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5173:5173"
|
||||
environment:
|
||||
API_URL: http://api:3000
|
||||
depends_on:
|
||||
- api
|
||||
|
||||
intra:
|
||||
build: ./nest-intra
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5174:5174"
|
||||
depends_on:
|
||||
- api
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
|
||||
Reference in New Issue
Block a user