-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yaml
67 lines (67 loc) · 2.36 KB
/
docker-compose.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: "3.8"
services:
wallet:
container_name: "boilerplate-wallet"
build: ./wallet
ports:
- "8888:8888"
volumes:
- ./tmp/wallet/:/opt/application/data/
postgres:
container_name: "boilerplate-postgres"
image: postgres:13.10-alpine
ports:
- "5432:5432"
volumes:
- ${POSTGRES_DATA}:/var/lib/postgresql/data
environment:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_DB: "${POSTGRES_DB}"
hapi:
container_name: "boilerplate-hapi"
image: node:16.0.0
ports:
- "9090:9090"
volumes:
- ./tmp/hapi/node_modules/:/app/node_modules/
- type: bind
source: ./hapi
target: /app
working_dir: /app
command: bash -c "yarn && yarn watch"
environment:
HAPI_SERVER_PORT: "${HAPI_SERVER_PORT}"
HAPI_SERVER_ADDRESS: "${HAPI_SERVER_ADDRESS}"
HAPI_NETWORK_API: "${HAPI_NETWORK_API}"
HAPI_NETWORK_CHAIN_ID: "${HAPI_NETWORK_CHAIN_ID}"
HAPI_NETWORK_BASE_ACCOUNT: "${HAPI_NETWORK_BASE_ACCOUNT}"
HAPI_NETWORK_BASE_PASSWORD: "${HAPI_NETWORK_BASE_PASSWORD}"
HAPI_NETWORK_WALLET_URL: "${HAPI_NETWORK_WALLET_URL}"
HAPI_HASURA_URL: "${HAPI_HASURA_URL}"
HAPI_HASURA_ADMIN_SECRET: "${HAPI_HASURA_ADMIN_SECRET}"
hasura:
container_name: "boilerplate-hasura"
image: hasura/graphql-engine:v2.11.0-beta.1.cli-migrations-v3
ports:
- "8080:8080"
depends_on:
- postgres
volumes:
- ./hasura/migrations:/migrations
- ./hasura/metadata:/metadata
- ./hasura/seeds:/seeds
environment:
HASURA_GRAPHQL_DATABASE_URL: "${HASURA_GRAPHQL_DATABASE_URL}"
HASURA_GRAPHQL_MIGRATIONS_DIR: /migrations
HASURA_GRAPHQL_METADATA_DIR: /metadata
HASURA_GRAPHQL_SEEDS_DIR: /seeds
HASURA_GRAPHQL_ACTION_BASE_URL: "${HASURA_GRAPHQL_ACTION_BASE_URL}"
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
# Local Development Configurations It is recommended to disable this in production
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ENABLE_LOGGING: "true"
# disabled security for local development
# HASURA_GRAPHQL_ADMIN_SECRET: "${HASURA_GRAPHQL_ADMIN_SECRET}"
# HASURA_GRAPHQL_UNAUTHORIZED_ROLE: "${HASURA_GRAPHQL_UNAUTHORIZED_ROLE}"