add stack hasura

This commit is contained in:
Yann Autissier
2025-08-08 15:06:42 +02:00
parent 98f479e455
commit d20aae97c1
4 changed files with 78 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
version: '3.6'
services:
postgres:
image: postgres:alpine
environment:
- POSTGRES_DB=${HASURA_POSTGRES_DB:-postgres}
- POSTGRES_HOST_AUTH_METHOD=${HASURA_POSTGRES_HOST_AUTH_METHOD:-trust}
- POSTGRES_PASSWORD=${HASURA_POSTGRES_PASSWORD:-postgres}
- POSTGRES_USER=${HASURA_POSTGRES_USER:-postgres}
labels:
- SERVICE_5432_CHECK_TCP=true
- SERVICE_5432_NAME=${COMPOSE_SERVICE_NAME}-postgres-5432
networks:
- private
ports:
- 5432
volumes:
- postgres:/var/lib/postgresql/data
restart: always
volumes:
postgres: