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

Add mongo to docker-compose #4

Open
Perevalov opened this issue May 24, 2023 · 0 comments
Open

Add mongo to docker-compose #4

Perevalov opened this issue May 24, 2023 · 0 comments

Comments

@Perevalov
Copy link
Member

version: '3.8'
services:
  mongodb:
    container_name: mongodb-perevalov
    image: mongo:latest
    restart: always
    ports:
      - 40200:27017
    volumes:
      - /home/aperevalov/mongodb/data:/data/db
    environment:
      MONGO_INITDB_ROOT_USERNAME: admin
      MONGO_INITDB_ROOT_PASSWORD: admin123
      MONGO_INITDB_DATABASE: mydb
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

1 participant