Voilà le docker-compose
qui tourne actuellement sur mon serveur :
détail
services:
# postgres database
postgres:
image: postgres:12
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: xxx
# hasura
graphql-engine:
image: duniter/hasura-indexer:latest
depends_on:
- postgres
restart: always
ports:
- 127.0.0.1:8484:8080 # 8080 already used by wotwizard
environment:
# postgres database
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:xxx@postgres:5432/postgres
# enable the console served by server
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
# dev mode
HASURA_GRAPHQL_DEV_MODE: "false"
# logging
# HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup
# admin password
HASURA_GRAPHQL_ADMIN_SECRET: hasura_password
# Name of role when the Authorization header is absent in JWT
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: public
# telemetry
HASURA_GRAPHQL_ENABLE_TELEMETRY: "false"
HASURA_GRAPHQL_MIGRATIONS_SERVER_TIMEOUT: 60
# indexer (must have duniter-archive on duniter network)
indexer:
image: h30x/duniter-indexer
environment:
- POSTGRES_HOST=postgres
- INDEXER_DUNITER_WS_ENDPOINT=ws://duniter-archive:9944
- INDEXER_DUNITER_WS_ENDPOINT_GRAPHIQL=wss://gdev.coinduf.eu/ws
- INDEXER_HASURA_GRAPHQL_ENDPOINT_GRAPHIQL=https://hasura.gdev.coinduf.eu
restart: unless-stopped
ports:
- 127.0.0.1:3000:3000
depends_on:
# - duniter-archive # depends on archive node through network
- postgres
- graphql-engine
volumes:
- logs:/logs
- resources:/resources
# allows to connect to duniter node
networks:
- default
- duniter
# define volumes
volumes:
postgres-data:
logs:
resources:
# define duniter external network to allow connect to duniter archive node
networks:
duniter:
name: duniter-gdev-archive_default
external: true
(j’allais justement arrêter de bosser, tu arrives pile au bon moment)