forked from Litlyx/litlyx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
109 lines (95 loc) · 3.18 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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
services:
mongo:
image: mongo
environment:
# Change with your database username
MONGO_INITDB_ROOT_USERNAME: litlyx
# Change with your database password
MONGO_INITDB_ROOT_PASSWORD: litlyx
# Uncomment to expose database
# ports:
# - 27017:27017
volumes:
- mongo-data:/data/db
cache:
image: redis:alpine
restart: always
# Uncomment to expose redis
# ports:
# - "6379:6379"
# Change with "--requirepass YOUR_REDIS_PASSWORD"
command: redis-server --save 20 1 --loglevel warning --requirepass litlyx
producer:
image: litlyx-producer
restart: always
ports:
- "3099:3099"
environment:
PORT: "3099"
REDIS_URL: "redis://cache"
REDIS_USERNAME: "default"
# Change with your redis password
REDIS_PASSWORD: "litlyx"
STREAM_NAME: "LITLYX"
build:
dockerfile: ./producer/Dockerfile
consumer:
image: litlyx-consumer
restart: always
environment:
# Optional - Used to send welcome and quota emails
# EMAIL_SERVICE: "Brevo"
# BREVO_API_KEY: ""
# Change "litlyx:litlyx" with "mongodb://YOUR_MONGO_USERNAME:YOUR_MONGO_PASSWORD"
MONGO_CONNECTION_STRING: "mongodb://litlyx:litlyx@mongo:27017/SimpleMetrics?readPreference=primaryPreferred&authSource=admin"
REDIS_URL: "redis://cache"
REDIS_USERNAME: "default"
# Change with your redis password
REDIS_PASSWORD: "litlyx"
STREAM_NAME: "LITLYX"
GROUP_NAME: "DATABASE"
build:
dockerfile: ./consumer/Dockerfile
dashboard:
image: litlyx-dashboard
restart: always
ports:
- "3000:3000"
environment:
NUXT_PORT: "3000"
# Change "litlyx:litlyx" with "mongodb://YOUR_MONGO_USERNAME:YOUR_MONGO_PASSWORD"
NUXT_MONGO_CONNECTION_STRING: 'mongodb://litlyx:litlyx@mongo:27017/SimpleMetrics?readPreference=primaryPreferred&authSource=admin'
NUXT_REDIS_URL: "redis://cache"
NUXT_REDIS_USERNAME: "default"
# Change with your redis password
NUXT_REDIS_PASSWORD: "litlyx"
# Optional - Used for Lit, the AI analyst
# NUXT_AI_ORG: 'OPEN_AI_ORGANIZATION'
# NUXT_AI_PROJECT: 'OPEN_AI_PROJECT'
# NUXT_AI_KEY: 'OPEN_AI_KEY'
# Optional - Used to send welcome and quota emails
# NUXT_EMAIL_SERVICE: "Brevo"
# NUXT_BREVO_API_KEY: ""
# Change with your jwt secret
NUXT_AUTH_JWT_SECRET: "litlyx_jwt_secret"
# Optional - Used to register / login via google
# NUXT_GOOGLE_AUTH_CLIENT_ID: ""
# NUXT_GOOGLE_AUTH_CLIENT_SECRET: ""
# NO_AUTH or GOOGLE
NUXT_PUBLIC_AUTH_MODE: 'NO_AUTH'
# Default user created in NO_AUTH mode
NUXT_NOAUTH_USER_EMAIL: '[email protected]'
NUXT_NOAUTH_USER_NAME: "defaultuser"
# Optional - Used for tests
# NUXT_STRIPE_SECRET_TEST: ""
# NUXT_STRIPE_WH_SECRET_TEST: ""
# Optional - Stripe secret - Used to change plans of the projects
# NUXT_STRIPE_SECRET: ""
# NUXT_STRIPE_WH_SECRET: ""
build:
dockerfile: ./dashboard/Dockerfile
#args:
# Optional - Used to register / login via google
# GOOGLE_AUTH_CLIENT_ID: ""
volumes:
mongo-data: