-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
88 lines (85 loc) · 2.95 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.6'
services:
graphql-engine:
image: hasura/graphql-engine:latest
ports:
- "8080:8080"
networks:
- default
- letsencrypt-docker-compose
volumes:
- ./data/migrations:/hasura-migrations
- ./data/metadata:/hasura-metadata
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: ${DATABASE_URL}
## enable the console served by server
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
## enable debugging mode. 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
## uncomment next line to set an admin secret
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
HASURA_GRAPHQL_MIGRATIONS_DISABLE_TRANSACTION: "true"
HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: /srv/console-assets
ai-tools:
image: ghcr.io/samagra-development/ai-tools:main
ports:
- "5000:8000"
networks:
- default
- letsencrypt-docker-compose
volumes:
- type: bind
source: ./akai.csv
target: /app/src/embeddings/openai/remote/akai.csv
read_only: true
- type: bind
source: ./google-creds.json
target: /app/google-creds.json
read_only: true
environment:
OPENAI_API_KEY: ${OPENAI_API_KEY}
AUTH_HEADER: ${AUTH_HEADER}
AUTH_HEADER_KEY: Authorization
AZURE_TRANSLATE_KEY: ${AZURE_TRANSLATE_KEY}
service:
container_name: bff
build: .
image: bff
networks:
- default
- letsencrypt-docker-compose
restart: always
ports:
- "0.0.0.0:8081:3000"
environment:
DATABASE_URL: ${DATABASE_URL}
POSTHOG_API_KEY: ${POSTHOG_API_KEY}
POSTHOG_BASE_URL: ${POSTHOG_BASE_URL}
POSTHOG_BATCH_SIZE: ${POSTHOG_BATCH_SIZE}
POSTHOG_FLUSH_INTERVAL: ${POSTHOG_FLUSH_INTERVAL}
AI_TOOLS_BASE_URL: ${AI_TOOLS_BASE_URL}
AI_TOOLS_AUTH_HEADER: ${AI_TOOLS_AUTH_HEADER}
TRANSPORT_SOCKET_URL: ${TRANSPORT_SOCKET_URL}
AUTH_HEADER: ${AUTH_HEADER}
SENDGRID_API_KEY: ${SENDGRID_API_KEY}
SENDGRID_SENDER_EMAIL: ${SENDGRID_SENDER_EMAIL}
SENDGRID_ALERT_RECEIVERS: ${SENDGRID_ALERT_RECEIVERS}
SIMILARITY_THRESHOLD: ${SIMILARITY_THRESHOLD}
DEFAULT_ALERT_RESPONSE_TIME: ${DEFAULT_ALERT_RESPONSE_TIME}
SIMILARITY_LOWER_THRESHOLD: ${SIMILARITY_LOWER_THRESHOLD}
ENVIRONMENT: ${ENVIRONMENT}
ERROR_RATE_THRESHOLD: ${ERROR_RATE_THRESHOLD}
DISCORD_WEBHOOK: ${DISCORD_WEBHOOK}
JWKS_URI: ${JWKS_URI}
AXIOM_DATASET: ${AXIOM_DATASET}
AXIOM_TOKEN: ${AXIOM_TOKEN}
AXIOM_ORG_ID: ${AXIOM_ORG_ID}
FRONTEND_APPLICATION_ID: ${FRONTEND_APPLICATION_ID}
FUSION_AUTH_API_KEY: ${FUSION_AUTH_API_KEY}
FUSION_AUTH_BASE_URL: ${FUSION_AUTH_BASE_URL}
networks:
letsencrypt-docker-compose:
name: letsencrypt-docker-compose_default
external: true