diff --git a/docker-compose.yml b/docker-compose.yml index 287113a..8b61300 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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/ \ No newline at end of file +volumes: + data: \ No newline at end of file