From f022cd07dd64015e6433aa8096f340699e1621e0 Mon Sep 17 00:00:00 2001 From: Gary Belvin Date: Thu, 9 Jan 2020 15:26:34 +0000 Subject: [PATCH] attachable network --- docker-compose.override.yml | 2 +- docker-compose.prod.yml | 2 +- docker-compose.yml | 10 +++++++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/docker-compose.override.yml b/docker-compose.override.yml index d364b6b06..8dbd1a34d 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -1,7 +1,7 @@ # Development configuration # docker-compose up will automatically find and apply this configuration -version: "3.1" +version: "3.2" services: db: ports: diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 0e03d002a..05b603523 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -1,7 +1,7 @@ # Production configuration # docker-compose up -f docker-compose.yml docker-compose.prod.yml -version: "3.1" +version: "3.2" services: db: environment: diff --git a/docker-compose.yml b/docker-compose.yml index 260b7e730..9e090ca8e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3.1" +version: "3.2" secrets: server.key: file: ./genfiles/server.key @@ -121,6 +121,9 @@ services: secrets: - server.key - server.crt + networks: + - attachable + - default monitor: depends_on: @@ -145,3 +148,8 @@ services: - server.key - server.crt - monitor.key + +networks: + attachable: + driver: overlay + attachable: true