Self Hosting
Docker-compose.yml File
Discover all the setup for running the optimal Dashboard.
The File
where you see comments you can add your own API keys for the services we choose to use in Litlyx.
File
services:
mongo:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: litlyx
MONGO_INITDB_ROOT_PASSWORD: litlyx
ports:
- 27017:27017
volumes:
- mongo-data:/data/db
cache:
image: redis:alpine
restart: always
ports:
- "6379:6379"
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"
REDIS_PASSWORD: "litlyx"
STREAM_NAME: "lib-events"
build:
dockerfile: ./producer/Dockerfile
broker:
image: litlyx-broker
restart: always
ports:
- "3999:3999"
environment:
# Optional - Used to send welcome and quota emails
# EMAIL_SERVICE: ""
# EMAIL_HOST: ""
# EMAIL_USER: ""
# EMAIL_PASS: ""
PORT: "3999"
MONGO_CONNECTION_STRING: "mongodb://litlyx:litlyx@mongo:27017/SimpleMetrics?readPreference=primaryPreferred&authSource=admin"
REDIS_URL: "redis://cache"
REDIS_USERNAME: "default"
REDIS_PASSWORD: "litlyx"
STREAM_NAME: "lib-events"
build:
dockerfile: ./broker/Dockerfile
dashboard:
image: litlyx-dashboard
restart: always
ports:
- "3000:3000"
environment:
NUXT_PORT: "3000"
NUXT_MONGO_CONNECTION_STRING: 'mongodb://litlyx:litlyx@mongo:27017/SimpleMetrics?readPreference=primaryPreferred&authSource=admin'
NUXT_REDIS_URL: "redis://cache"
NUXT_REDIS_USERNAME: "default"
NUXT_REDIS_PASSWORD: "litlyx"
# Optional - Used to use 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: ""
# NUXT_EMAIL_HOST: ""
# NUXT_EMAIL_USER: ""
# NUXT_EMAIL_PASS: ""
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: 'default@user.com'
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: