Updated docker-compose to use swarm port binding
All checks were successful
pipeline / build-and-push-images (push) Successful in 14s
All checks were successful
pipeline / build-and-push-images (push) Successful in 14s
This commit is contained in:
@@ -13,7 +13,9 @@ services:
|
|||||||
image: mongo-express
|
image: mongo-express
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "8081:8081"
|
- target: 8081
|
||||||
|
published: 8081
|
||||||
|
mode: host
|
||||||
environment:
|
environment:
|
||||||
ME_CONFIG_MONGODB_ADMINUSERNAME: root
|
ME_CONFIG_MONGODB_ADMINUSERNAME: root
|
||||||
ME_CONFIG_MONGODB_ADMINPASSWORD: password
|
ME_CONFIG_MONGODB_ADMINPASSWORD: password
|
||||||
@@ -43,7 +45,9 @@ services:
|
|||||||
build: ./frontend
|
build: ./frontend
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- target: 3000
|
||||||
|
published: 3000
|
||||||
|
mode: host
|
||||||
environment:
|
environment:
|
||||||
MONGO_USER: root
|
MONGO_USER: root
|
||||||
MONGO_PASS: password
|
MONGO_PASS: password
|
||||||
|
|||||||
Reference in New Issue
Block a user