Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose.yml is empty #1

Open
JEduardoGD opened this issue Feb 20, 2020 · 1 comment
Open

docker-compose.yml is empty #1

JEduardoGD opened this issue Feb 20, 2020 · 1 comment

Comments

@JEduardoGD
Copy link

docker-compose.yml dont contains any line or information

@jojo5716
Copy link

jojo5716 commented Jul 4, 2020

version: "2"


services:
    db:
        image: mongo
        expose:
            - "27017"
        volumes: 
            - mongodata:/data/db
    web:
        build: .
        depends_on:
            - db
        ports:
            - "3000:3000"
        volumes: 
            - .:/opt/app
            - /opt/app/node_modules
volumes: 
    mongodata:

`

Here is the docker-compose-yml (Was missing the version:"2" attribute on the tutorial https://medium.com/devschile/dockerizando-nodejs-y-mongodb-ad24fedab8f2)

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants