aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 0bb5bc9..bea9fd4 100644
--- a/README.md
+++ b/README.md
@@ -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