diff options
-rw-r--r-- | README.md | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -74,11 +74,11 @@ MONGO_INITDB_DATABASE=admin Write `docker-compose.yml`: ```yaml -version: '3' +version: '3.5' services: app: - image: rusian/heroeapi + image: rusian/heroesapi container_name: heroeapi env_file: .env networks: @@ -91,20 +91,20 @@ services: mongo: image: mongo:4.4.12-focal container_name: heroeapi_db + networks: + - heroeapi restart: always command: [--auth] env_file: - .db.env - networks: - - heroeapi volumes: - ./heroeapi_db:/data/db ports: - "27017:27017" networks: - default: - name: heroeapi + heroeapi: + driver: bridge ``` ```console |