Don't just expose things when in public.
Some checks failed
CI/CD / build-and-test (push) Has been cancelled
Some checks failed
CI/CD / build-and-test (push) Has been cancelled
This commit is contained in:
parent
5555f04014
commit
2aaad4cf96
1 changed files with 10 additions and 3 deletions
|
@ -20,6 +20,8 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongo
|
- mongo
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- guestbooky
|
||||||
|
|
||||||
mongo:
|
mongo:
|
||||||
image: mongo
|
image: mongo
|
||||||
|
@ -33,8 +35,13 @@ services:
|
||||||
- ./mongodb/mongod.conf:/etc/mongod.conf:ro
|
- ./mongodb/mongod.conf:/etc/mongod.conf:ro
|
||||||
- mongodata:/data/db
|
- mongodata:/data/db
|
||||||
command: ["mongod", "--config", "/etc/mongod.conf"]
|
command: ["mongod", "--config", "/etc/mongod.conf"]
|
||||||
ports:
|
networks:
|
||||||
- "27017:27017"
|
- guestbooky
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mongodata:
|
mongodata:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
guestbooky:
|
||||||
|
driver: bridge
|
||||||
|
|
Loading…
Reference in a new issue