diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-07-14 19:51:44 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:48:04 +0200 |
| commit | 1a4776636bf6b585d4a19a6721d9d57b02c88ca4 (patch) | |
| tree | c09139e2d4fcb1bc385643837afc47065df81bf8 /docker-compose.yml | |
| parent | ba99e8f03ba8605deccac12b8c91cab94509dd94 (diff) | |
Migrate from links to docker-compose networks
This change migrates the docker-compose configuration from using links
to using custom networks since links have been deprecated for some time.
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 6338e3d0..b2072be9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,8 +6,8 @@ services: restart: on-failure ports: - "8081:8081" - links: - - mongo + networks: + - backend depends_on: - mongo environment: @@ -56,6 +56,8 @@ services: - OPENDC_DB - OPENDC_DB_USERNAME - OPENDC_DB_PASSWORD + networks: + - backend # Comment out for public deployment ports: - 27017:27017 @@ -66,10 +68,10 @@ services: mongo-express: image: mongo-express restart: on-failure - links: - - mongo + networks: + - backend depends_on: - - mongo + - mongo ports: - 8082:8081 environment: @@ -79,3 +81,6 @@ services: volumes: mongo-volume: external: false + +networks: + backend: {} |
