Created
May 21, 2021 21:14
-
-
Save VitorLuizC/504d1499ecd9a9be2f5ffb7b26db7737 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' | |
services: | |
server: | |
container_name: server | |
working_dir: /app | |
command: npm run start | |
volumes: | |
- ./:/app | |
- ./node_modules:/app/node_modules | |
image: node | |
environment: | |
- PORT=9000 | |
ports: | |
- '9000:9000' | |
depends_on: | |
- mongo_db | |
mongo_db: | |
container_name: mongo_db | |
image: mongo | |
ports: | |
- '27017:27017' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment