Name container
This commit is contained in:
parent
0c2e1d2c2c
commit
40168a2e26
|
@ -0,0 +1,2 @@
|
|||
services:
|
||||
hasura
|
|
@ -9,5 +9,5 @@ services:
|
|||
- "5050:80"
|
||||
restart: always
|
||||
depends_on:
|
||||
db:
|
||||
postgres:
|
||||
condition: service_healthy
|
|
@ -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:
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue