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" - "5050:80"
restart: always restart: always
depends_on: depends_on:
db: postgres:
condition: service_healthy condition: service_healthy

View File

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

View File

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