docs: update deployment configurations for multi-module architecture
This commit is contained in:
+36
-13
@@ -19,28 +19,45 @@ services:
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
backend:
|
||||
gateway:
|
||||
build:
|
||||
context: ./novalon-manage-api
|
||||
context: ./novalon-manage-api/manage-gateway
|
||||
dockerfile: Dockerfile
|
||||
container_name: backend
|
||||
container_name: gateway
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
SPRING_R2DBC_URL: r2dbc:pool:postgresql://postgres:5432/manage_system
|
||||
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/manage_system
|
||||
SPRING_DATASOURCE_USERNAME: postgres
|
||||
SPRING_DATASOURCE_PASSWORD: postgres
|
||||
SPRING_FLYWAY_URL: jdbc:postgresql://postgres:5432/manage_system
|
||||
SPRING_FLYWAY_USER: postgres
|
||||
SPRING_FLYWAY_PASSWORD: postgres
|
||||
SPRING_PROFILES_ACTIVE: prod
|
||||
JWT_SECRET: novalon-manage-secret-key-change-in-production
|
||||
JWT_EXPIRATION: 86400000
|
||||
depends_on:
|
||||
- app
|
||||
networks:
|
||||
- novalon-network
|
||||
|
||||
app:
|
||||
build:
|
||||
context: ./novalon-manage-api/manage-app
|
||||
dockerfile: Dockerfile
|
||||
container_name: app
|
||||
ports:
|
||||
- "8084:8084"
|
||||
environment:
|
||||
SPRING_PROFILES_ACTIVE: prod
|
||||
DB_HOST: postgres
|
||||
DB_PORT: 5432
|
||||
DB_NAME: manage_system
|
||||
DB_USERNAME: postgres
|
||||
DB_PASSWORD: postgres
|
||||
JWT_SECRET: novalon-manage-secret-key-change-in-production
|
||||
JWT_EXPIRATION: 86400000
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- backend_uploads:/app/uploads
|
||||
- app_uploads:/app/uploads
|
||||
networks:
|
||||
- novalon-network
|
||||
|
||||
frontend:
|
||||
build:
|
||||
@@ -50,8 +67,14 @@ services:
|
||||
ports:
|
||||
- "3000:80"
|
||||
depends_on:
|
||||
- backend
|
||||
- gateway
|
||||
networks:
|
||||
- novalon-network
|
||||
|
||||
networks:
|
||||
novalon-network:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
backend_uploads:
|
||||
app_uploads:
|
||||
|
||||
Reference in New Issue
Block a user