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