docker release
This commit is contained in:
47
bkp/docker-compose-noui.yml
Normal file
47
bkp/docker-compose-noui.yml
Normal file
@@ -0,0 +1,47 @@
|
||||
services:
|
||||
backend:
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: ../../fennec-hub-multi-tenant-shared-db/Dockerfile
|
||||
container_name: fennec-backend
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
environment:
|
||||
SPRING_PROFILES_ACTIVE: custom
|
||||
SPRING_DATASOURCE_URL: jdbc:mysql://host.docker.internal:3306/fennecpro?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC
|
||||
SPRING_DATASOURCE_USERNAME: root
|
||||
SPRING_DATASOURCE_PASSWORD: Yamm@230371
|
||||
# Honor X-Forwarded-* from nginx so Spring reconstructs the original URL
|
||||
# (http://localhost) instead of seeing http://backend:8080.
|
||||
SERVER_FORWARD_HEADERS_STRATEGY: framework
|
||||
# CORS allow-list — frontend served via nginx on http://localhost (port 80).
|
||||
# Keep :4200 so the non-dockerized Angular dev server still works.
|
||||
FENNEC_HUB_SECURITY_CORS_ALLOWED_ORIGINS: "http://localhost,http://localhost:4200,https://hub.fennecsm.com"
|
||||
ports:
|
||||
- "9999:8080"
|
||||
volumes:
|
||||
- /home/fennec/hub:/home/fennec/hub
|
||||
#expose:
|
||||
# - "8080"
|
||||
networks:
|
||||
- fennec
|
||||
|
||||
# frontend:
|
||||
# build:
|
||||
# context: ./fennec-hub-angular-ui
|
||||
# dockerfile: Dockerfile
|
||||
# container_name: fennec-frontend
|
||||
# ports:
|
||||
# - "8888:80"
|
||||
# depends_on:
|
||||
# - backend
|
||||
# networks:
|
||||
#wq! - fennec
|
||||
|
||||
volumes:
|
||||
mysql-data:
|
||||
|
||||
networks:
|
||||
fennec:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user