Skip to content

Commit

Permalink
Merge pull request #5 from artsamoilov/module4-task1
Browse files Browse the repository at this point in the history
  • Loading branch information
keksobot authored Oct 28, 2024
2 parents e0075b2 + 136b09e commit f8fe20e
Show file tree
Hide file tree
Showing 39 changed files with 788 additions and 41 deletions.
36 changes: 36 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
services:
db:
image: mongo:latest
restart: always
container_name: six-cities_mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASSWORD}
ports:
- ${DB_PORT}:${DB_PORT}
volumes:
- six-cities_data:/data/db
networks:
- app-network

db_ui:
image: mongo-express:latest
restart: always
container_name: six-cities_mongo_express
ports:
- ${DB_UI_PORT}:${DB_UI_PORT}
environment:
ME_CONFIG_BASICAUTH_USERNAME: ${DB_USERNAME}
ME_CONFIG_BASICAUTH_PASSWORD: ${DB_PASSWORD}
ME_CONFIG_MONGODB_ADMINUSERNAME: ${DB_USERNAME}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${DB_PASSWORD}
ME_CONFIG_MONGODB_URL: mongodb://${DB_USERNAME}:${DB_PASSWORD}@db:${DB_PORT}/
networks:
- app-network

networks:
app-network:
driver: bridge

volumes:
six-cities_data:
Loading

0 comments on commit f8fe20e

Please sign in to comment.