-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (42 loc) · 1.48 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
42
43
44
45
version: '3.8'
services:
database:
container_name: masterbots-postgres
image: postgres:14.5
volumes:
- masterbots-pgdata:/var/lib/postgresql/data_bitcash
ports:
- "5433:5433"
environment:
PGPORT: 5433
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: masterbots
DATABASE_URL: "postgres://user:pass@localhost:5433/masterbots?sslmode=disable"
hasura:
container_name: masterbots-hasura
build: ./apps/hasura
ports:
- "8080:8080"
depends_on:
- database
links:
- database
env_file:
- .env
environment:
# ? LOCAL
HASURA_GRAPHQL_DATABASE_URL: "postgres://user:pass@database:5433/masterbots?sslmode=disable"
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
HASURA_GRAPHQL_MIGRATIONS_SERVER_TIMEOUT: 100
HASURA_GRAPHQL_SERVER_PORT: 8080
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_CORS_DOMAIN: "*"
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: "anonymous"
HASURA_GRAPHQL_EXPERIMENTAL_FEATURES: naming_convention
HASURA_GRAPHQL_DEFAULT_NAMING_CONVENTION: graphql-default
HASURA_GRAPHQL_JWT_SECRET: '{"type":"HS256", "key":"xx52fa850c02dc222631cca898ed1485821a70912a6e3649c49076912daa3b62182ba013315915d64f402ddfbb8b58eb5bd11ba225136a6af45bbae07ca872f4"}'
volumes:
masterbots-pgdata: