Name container

This commit is contained in:
ManUtopiK 2022-10-20 15:41:56 +02:00
parent 0c2e1d2c2c
commit 40168a2e26
5 changed files with 10 additions and 7 deletions

View File

@ -0,0 +1,2 @@
services:
hasura

View File

@ -9,5 +9,5 @@ services:
- "5050:80"
restart: always
depends_on:
db:
postgres:
condition: service_healthy

View File

@ -1,5 +1,6 @@
services:
db:
postgres:
container_name: postgres
image: postgres:14
restart: always
environment:
@ -9,7 +10,7 @@ services:
- POSTGRES_NON_ROOT_USER
- POSTGRES_NON_ROOT_PASSWORD
volumes:
- db_storage:/var/lib/postgresql/data
- postgres_storage:/var/lib/postgresql/data
- ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh
healthcheck:
test:

View File

@ -1,9 +1,9 @@
services:
db:
postgres:
extends:
file: composes/db/compose.yml
service: db
file: composes/postgres/compose.yml
service: postgres
pgadmin:
extends:
@ -11,4 +11,4 @@ services:
service: pgadmin
volumes:
db_storage:
postgres_storage: