Created
April 18, 2020 11:38
-
-
Save FirstShanti/13b235bbe5d5c3498e9548948d76a72e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
mongo: | |
image: mongo:latest | |
volumes: | |
- .data/mdata:/data/db | |
ports: | |
- "27017:27017" | |
command: mongod --port 27017 --bind_ip 0.0.0.0 | |
server: | |
build: server/ | |
ports: | |
- '5000:5000' | |
depends_on: | |
- mongo | |
volumes: | |
- .:/users | |
restart: always | |
links: | |
- mongo | |
client: | |
build: client/ | |
volumes: | |
- ./client:/var/www/html | |
restart: always | |
ports: | |
- 5001:5001 | |
depends_on: | |
- server | |
# network_mode: host |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment