This repository has been archived by the owner on Nov 16, 2022. It is now read-only.
generated from edenia/full-stack-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
93 lines (93 loc) · 3.23 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
89
90
91
92
93
version: '3.6'
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.3-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:14.2.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.0.4.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}"
webapp:
container_name: 'boilerplate-webapp'
image: node:14.2.0
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:
REACT_APP_TAG: '${REACT_APP_TAG}'
REACT_APP_TITLE: '${REACT_APP_TITLE}'
REACT_APP_LOGO: '${REACT_APP_LOGO}'
REACT_APP_FOOTER_LINKS: '${REACT_APP_FOOTER_LINKS}'
REACT_APP_UAL_APP_NAME: '${REACT_APP_UAL_APP_NAME}'
REACT_APP_UAL_API_PROTOCOL: '${REACT_APP_UAL_API_PROTOCOL}'
REACT_APP_UAL_API_HOST: '${REACT_APP_UAL_API_HOST}'
REACT_APP_UAL_API_PORT: '${REACT_APP_UAL_API_PORT}'
REACT_APP_UAL_CHAIN_ID: '${REACT_APP_UAL_CHAIN_ID}'
REACT_APP_HASURA_URL: '${REACT_APP_HASURA_URL}'
volumes:
postgres_data: