add networks configuration for frontend and backend services in docker-compose
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
services:
|
services:
|
||||||
usr-frontend_v2:
|
usr-frontend_v2:
|
||||||
container_name: borrow_system-usr-frontend
|
container_name: borrow_system-usr-frontend
|
||||||
|
networks:
|
||||||
|
- proxynet
|
||||||
|
- borrow_system-internal
|
||||||
build: ./FrontendV2
|
build: ./FrontendV2
|
||||||
ports:
|
ports:
|
||||||
- "8101:80"
|
- "8101:80"
|
||||||
@@ -8,6 +11,9 @@ services:
|
|||||||
|
|
||||||
admin-frontend:
|
admin-frontend:
|
||||||
container_name: borrow_system-admin-frontend
|
container_name: borrow_system-admin-frontend
|
||||||
|
networks:
|
||||||
|
- proxynet
|
||||||
|
- borrow_system-internal
|
||||||
build: ./admin
|
build: ./admin
|
||||||
ports:
|
ports:
|
||||||
- "8103:80"
|
- "8103:80"
|
||||||
@@ -15,6 +21,9 @@ services:
|
|||||||
|
|
||||||
backend_v2:
|
backend_v2:
|
||||||
container_name: borrow_system-backend_v2
|
container_name: borrow_system-backend_v2
|
||||||
|
networks:
|
||||||
|
- proxynet
|
||||||
|
- borrow_system-internal
|
||||||
build: ./backendV2
|
build: ./backendV2
|
||||||
ports:
|
ports:
|
||||||
- "8102:8102"
|
- "8102:8102"
|
||||||
@@ -30,6 +39,8 @@ services:
|
|||||||
|
|
||||||
mysql_v2:
|
mysql_v2:
|
||||||
container_name: borrow_system-mysql-v2
|
container_name: borrow_system-mysql-v2
|
||||||
|
networks:
|
||||||
|
- borrow_system-internal
|
||||||
image: mysql:8.0
|
image: mysql:8.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
@@ -45,3 +56,9 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
mysql-data:
|
mysql-data:
|
||||||
mysql-v2-data:
|
mysql-v2-data:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxynet:
|
||||||
|
external: true
|
||||||
|
borrow_system-internal:
|
||||||
|
external: false
|
||||||
|
|||||||
Reference in New Issue
Block a user