diff options
author | Baitinq <you@example.com> | 2022-03-19 19:41:36 +0000 |
---|---|---|
committer | Baitinq <you@example.com> | 2022-03-19 19:41:36 +0000 |
commit | 44c250cc9d7450f1e36eee91c2ad92c34ca73bd5 (patch) | |
tree | 1bc0d121fbe9653f1c431f3a638ddf42f05a9bf3 /docker-compose.yml | |
parent | Pass the env file to all services (diff) | |
download | Bluetooth_Dosimeter-44c250cc9d7450f1e36eee91c2ad92c34ca73bd5.tar.gz Bluetooth_Dosimeter-44c250cc9d7450f1e36eee91c2ad92c34ca73bd5.tar.bz2 Bluetooth_Dosimeter-44c250cc9d7450f1e36eee91c2ad92c34ca73bd5.zip |
Docker: Added network for services to share
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 83c738586..123813eab 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,22 +1,27 @@ version: '3.3' services: - bluetooth_dosimeter_backend: - env_file: - - ".env" - extends: - file: Bluetooth_Dosimeter_Backend/docker-compose.yml - service: _bluetooth_dosimeter_backend bluetooth_dosimeter_ap: env_file: - ".env" extends: file: Bluetooth_Dosimeter_AP/docker-compose.yml service: _bluetooth_dosimeter_ap + bluetooth_dosimeter_backend: + env_file: + - ".env" + networks: + - dockernet + extends: + file: Bluetooth_Dosimeter_Backend/docker-compose.yml + service: _bluetooth_dosimeter_backend bluetooth_dosimeter_frontend: env_file: - ".env" + networks: + - dockernet extends: file: Bluetooth_Dosimeter_Frontend/docker-compose.yml service: _bluetooth_dosimeter_frontend -#add another service for nginx redirects? +networks: + dockernet: |