Use top-level name property in docker compose

Fix docker compose orphan containers warning
This commit is contained in:
Santiago Lo Coco 2023-11-09 22:46:53 -03:00
parent d21a761689
commit fbd5591e9d
13 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,5 @@
version: '3.8' version: '3.8'
name: fids_usermanager_dev
services: services:
usermanager-api-dev: usermanager-api-dev:

View File

@ -1,10 +1,12 @@
version: '3.8' version: '3.8'
name: fids_usermanager
services: services:
usermanager-api: usermanager-api:
extends: extends:
file: docker-template.yml file: docker-template.yml
service: usermanager-api service: usermanager-api
container_name: fids_usermanager_api
depends_on: depends_on:
usermanager-db: usermanager-db:
condition: service_healthy condition: service_healthy
@ -12,6 +14,7 @@ services:
- auth - auth
usermanager-db: usermanager-db:
container_name: fids_usermanager_db
extends: extends:
file: docker-template.yml file: docker-template.yml
service: usermanager-db service: usermanager-db

View File

@ -2,7 +2,6 @@ version: '3.8'
services: services:
usermanager-api: usermanager-api:
container_name: fids_usermanager_api
image: ${API_IMAGE} image: ${API_IMAGE}
healthcheck: healthcheck:
test: ["CMD", "nc", "-vz", "-w1", "localhost", "5000"] test: ["CMD", "nc", "-vz", "-w1", "localhost", "5000"]
@ -17,7 +16,6 @@ services:
- APP_SETTINGS=${APP_SETTINGS} - APP_SETTINGS=${APP_SETTINGS}
usermanager-db: usermanager-db:
container_name: fids_usermanager_db
build: build:
context: ./db context: ./db
dockerfile: Dockerfile dockerfile: Dockerfile

View File

@ -1,4 +1,5 @@
version: '3.8' version: '3.8'
name: fids_browser_dev
services: services:
browser-client-dev: browser-client-dev:

View File

@ -1,4 +1,5 @@
version: '3.8' version: '3.8'
name: fids_browser
services: services:
browser-client: browser-client:

View File

@ -1,4 +1,5 @@
version: '3.8' version: '3.8'
name: fids_flights_dev
services: services:
flights-api-dev: flights-api-dev:

View File

@ -1,4 +1,5 @@
version: '3.8' version: '3.8'
name: fids_flights
services: services:
flights-api: flights-api:

View File

@ -1,4 +1,5 @@
version: '3.8' version: '3.8'
name: fids_gateway_dev
services: services:
api-gateway-dev: api-gateway-dev:

View File

@ -1,4 +1,5 @@
version: '3.8' version: '3.8'
name: fids_gateway
services: services:
api-gateway: api-gateway:

View File

@ -1,4 +1,5 @@
version: '3.8' version: '3.8'
name: fids_screen_dev
services: services:
screens-client-dev: screens-client-dev:

View File

@ -1,4 +1,5 @@
version: '3.8' version: '3.8'
name: fids_screen
services: services:
screens-client: screens-client:

View File

@ -1,4 +1,5 @@
version: '3.8' version: '3.8'
name: fids_subscriptions_dev
services: services:
subscriptions-api-dev: subscriptions-api-dev:

View File

@ -1,4 +1,5 @@
version: '3.8' version: '3.8'
name: fids_subscriptions
services: services:
subscriptions-api: subscriptions-api: