Skip to content

Instantly share code, notes, and snippets.

@FirstShanti
Created April 18, 2020 11:38
Show Gist options
  • Save FirstShanti/13b235bbe5d5c3498e9548948d76a72e to your computer and use it in GitHub Desktop.
Save FirstShanti/13b235bbe5d5c3498e9548948d76a72e to your computer and use it in GitHub Desktop.
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