Skip to content

Commit

Permalink
config: [docker-compose] - updated file docker-compose for create vol…
Browse files Browse the repository at this point in the history
…umes local

#17
  • Loading branch information
Christiangsn committed Mar 9, 2023
1 parent c0597f8 commit d443a60
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
version: '3.1'
version: '3'

services:
mongo:
container_name: finance_api
image: mongo
volumes:
- ./data:/data/db
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: mongo

mongo-express:
image: mongo-express
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: mongo
ME_CONFIG_MONGODB_URL: mongodb://root:mongo@mongo:27017/
volumes:
data:

0 comments on commit d443a60

Please sign in to comment.