Name container
This commit is contained in:
parent
0c2e1d2c2c
commit
40168a2e26
|
@ -0,0 +1,2 @@
|
||||||
|
services:
|
||||||
|
hasura
|
|
@ -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
|
|
@ -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:
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue