generated from edenia/full-stack-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
88 lines (88 loc) · 3.13 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "3.8"
services:
postgres:
container_name: "postgres"
image: postgres:13.11-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: "hapi"
image: node:18.17.1
ports:
- "9090:9090"
volumes:
- type: bind
source: ./hapi
target: /app
working_dir: /app
command: bash -c "yarn && yarn start:dev"
environment:
HAPI_SERVER_PORT: "${HAPI_SERVER_PORT}"
HAPI_SERVER_ADDRESS: "${HAPI_SERVER_ADDRESS}"
HAPI_HASURA_URL: "${HAPI_HASURA_URL}"
HAPI_HASURA_ADMIN_SECRET: "${HAPI_HASURA_ADMIN_SECRET}"
HAPI_HOST_DOMAIN: "${HAPI_HOST_DOMAIN}"
HAPI_POLYGON_NETWORK: "${HAPI_POLYGON_NETWORK}"
HAPI_ISSUER_PUBLIC_KEY: "${HAPI_ISSUER_PUBLIC_KEY}"
HAPI_CONTRACT_ADDRESS: "${HAPI_CONTRACT_ADDRESS}"
HAPI_RPC_URL: "${HAPI_RPC_URL}"
HAPI_ALCHEMY_KEY: "${HAPI_ALCHEMY_KEY}"
HAPI_IPFS_NODE_URL: "${HAPI_IPFS_NODE_URL}"
HAPI_PROOF_REQUEST: "${HAPI_PROOF_REQUEST}"
hasura:
container_name: "hasura"
image: hasura/graphql-engine:v2.33.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: "false"
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}"
webapp:
container_name: "webapp"
image: node:16.14.0-alpine
stdin_open: true
ports:
- "3000:3000"
volumes:
- ./tmp/webapp/node_modules/:/app/node_modules/
- type: bind
source: ./webapp
target: /app
working_dir: /app
command: bash -c "yarn && yarn start"
environment:
NEXT_PUBLIC_TAG: "${NEXT_PUBLIC_TAG}"
NEXT_PUBLIC_TITLE: "${NEXT_PUBLIC_TITLE}"
NEXT_PUBLIC_LOGO: "${NEXT_PUBLIC_LOGO}"
NEXT_PUBLIC_FOOTER_LINKS: "${NEXT_PUBLIC_FOOTER_LINKS}"
NEXT_PUBLIC_UAL_APP_NAME: "${NEXT_PUBLIC_UAL_APP_NAME}"
NEXT_PUBLIC_UAL_API_PROTOCOL: "${NEXT_PUBLIC_UAL_API_PROTOCOL}"
NEXT_PUBLIC_UAL_API_HOST: "${NEXT_PUBLIC_UAL_API_HOST}"
NEXT_PUBLIC_UAL_API_PORT: "${NEXT_PUBLIC_UAL_API_PORT}"
NEXT_PUBLIC_UAL_CHAIN_ID: "${NEXT_PUBLIC_UAL_CHAIN_ID}"
NEXT_PUBLIC_HASURA_URL: "${NEXT_PUBLIC_HASURA_URL}"
volumes:
postgres_data: