Skip to content

Commit

Permalink
Create docker-compose.yml (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrij-zavrazhin-1304 authored Sep 18, 2024
1 parent cf71bc7 commit a96607e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions hello_world/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '3.1'

services:
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
ports:
- 27017:27017

mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_MONGODB_URL: 'mongodb://root:example@mongo:27017/'
ME_CONFIG_BASICAUTH: false

0 comments on commit a96607e

Please sign in to comment.