-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathdocker-compose.yml
41 lines (39 loc) · 1.58 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: "3.1"
services:
# Bitcoin node for development, if you want to start your own node,
# uncomment below lines (note: this code starts archive node and it will sync for a long time,
# we recommend to set up the Bitcoin node on a dedicated machine outside the Docker):
# bitcoin:
# image: ruimarinho/bitcoin-core
# command: "-txindex=1 -printtoconsole -rpcallowip=0.0.0.0/0 -rpcbind=0.0.0.0 -rpcauth=bitcoin:68d381f566193c1938b7b1f72288bebf$$6c2d9f021bf4dd5e7e896634f531d35bb5aa9d90c77686af2f79a312e9ff4b75"
# ports:
# - 8332:8332
# - 18443:18443
conseil-postgres:
image: postgres:11.9
ports:
- 5432:5432
# uncomment if you want to see SQL queries in the logs
# command: ["postgres", "-c", "log_statement=all"]
environment:
POSTGRES_USER: "conseiluser"
POSTGRES_PASSWORD: "p@ssw0rd"
POSTGRES_DB: "conseil-local"
POSTGRES_INITDB_ARGS: "--lc-collate=en_US.UTF-8 -E UTF8"
volumes:
- "./sql/:/docker-entrypoint-initdb.d/"
# uncomment if you want your data to be stored in the local directory
# - "./pgdata:/var/lib/postgresql/data"
graphql-engine:
image: hasura/graphql-engine:v1.3.3.cli-migrations-v2
ports:
- "8080:8080"
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: "postgres://hasurauser:hasurapass@conseil-postgres:5432/conseil-local"
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
volumes:
- "./hasura/metadata/:/hasura-metadata"
depends_on:
- "conseil-postgres"