richiekhoo
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    RK: BELOW IS THE DOCKER-COMPOSE FILE FROM LAGO. render.yml (IN PROGRESS) # See example from renders docs: https://render.com/docs/blueprint-spec # render.yml ------------------------------- services: - type: web name: amorc-lago_api command: ["./scripts/start.sh"] healthCheckPath: / envVars: - key: LAGO_API_URL value: ${LAGO_API_URL:-http://localhost:3000} - key: DATABASE_URL value: postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago} - key: REDIS_URL value: redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379} - key: REDIS_PASSWORD value: ${REDIS_PASSWORD} - key: SECRET_KEY_BASE value: ${SECRET_KEY_BASE:-your-secret-key-base-hex-64} - key: RAILS_ENV value: production - key: RAILS_LOG_TO_STDOUT value: ${LAGO_RAILS_STDOUT:-true} - key: SENTRY_DSN value: ${SENTRY_DSN} - key: LAGO_FRONT_URL value: ${LAGO_FRONT_URL:-http://localhost} - key: RSA_PRIVATE_KEY value: ${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded - key: LAGO_RSA_PRIVATE_KEY value: ${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded - key: LAGO_SIDEKIQ_WEB value: ${LAGO_SIDEKIQ_WEB} - key: ENCRYPTION_PRIMARY_KEY value: ${LAGO_ENCRYPTION_PRIMARY_KEY:-your-encrpytion-primary-key} - key: ENCRYPTION_DETERMINISTIC_KEY value: ${LAGO_ENCRYPTION_DETERMINISTIC_KEY:-your-encrpytion-deterministic-key} - key: ENCRYPTION_KEY_DERIVATION_SALT value: ${LAGO_ENCRYPTION_KEY_DERIVATION_SALT:-your-encrpytion-derivation-salt} - key: LAGO_USE_AWS_S3 value: ${LAGO_USE_AWS_S3:-false} - key: LAGO_AWS_S3_ACCESS_KEY_ID value: ${LAGO_AWS_S3_ACCESS_KEY_ID:-azerty123456} - key: LAGO_AWS_S3_SECRET_ACCESS_KEY value: ${LAGO_AWS_S3_SECRET_ACCESS_KEY:-azerty123456} - key: LAGO_AWS_S3_REGION value: ${LAGO_AWS_S3_REGION:-us-east-1} - key: LAGO_AWS_S3_BUCKET value: ${LAGO_AWS_S3_BUCKET:-bucket} - key: LAGO_AWS_S3_ENDPOINT value: ${LAGO_AWS_S3_ENDPOINT} - key: LAGO_USE_GCS value: ${LAGO_USE_GCS:-false} - key: LAGO_GCS_PROJECT value: ${LAGO_GCS_PROJECT:-} - key: LAGO_GCS_BUCKET value: ${LAGO_GCS_BUCKET:-} - key: LAGO_PDF_URL value: ${LAGO_PDF_URL:-http://pdf:3000} - key: LAGO_REDIS_CACHE_URL value: redis://${LAGO_REDIS_CACHE_HOST:-redis}:${LAGO_REDIS_CACHE_PORT:-6379} - key: LAGO_REDIS_CACHE_PASSWORD value: ${LAGO_REDIS_CACHE_PASSWORD} - key: LAGO_DISABLE_SEGMENT value: ${LAGO_DISABLE_SEGMENT} - key: LAGO_OAUTH_PROXY_URL value: https://proxy.getlago.com - key: LAGO_LICENSE value: ${LAGO_LICENSE:-} - type: web name: amorc-lago_front-: envVars: - key: API_URL value: ${LAGO_API_URL:-http://localhost:3000} - key: APP_ENV value: ${APP_ENV:-production} - key: CODEGEN_API value: ${LAGO_API_URL:-http://localhost:3000} - key: LAGO_DISABLE_SIGNUP value: ${LAGO_DISABLE_SIGNUP:-false} - key: LAGO_OAUTH_PROXY_URL value: https://proxy.getlago.com - key: SENTRY_DSN value: ${SENTRY_DSN_FRONT} - type: redis name: amorc-lago_redis ipAllowList: [] # only allow internal connections region: singapore plan: free # optional (defaults to starter instance type) maxmemoryPolicy: noeviction # optional (defaults to allkeys-lru) - type: worker name: amorc-lago_sidekiq-worker plan: starter env: ruby region: singapore buildCommand: bundle install startCommand: bundle exec sidekiq && ./scripts/start.worker.sh healthcheck: test: ["CMD-SHELL", "bundle exec sidekiqmon | grep $(hostname) || exit 1"] envVars: - key: LAGO_API_URL value: ${LAGO_API_URL:-http://localhost:3000} - key: DATABASE_URL value: postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago} - key: REDIS_URL value: redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379} - key: REDIS_PASSWORD value: ${REDIS_PASSWORD} - key: SECRET_KEY_BASE value: ${SECRET_KEY_BASE:-your-secret-key-base-hex-64} - key: RAILS_ENV value: production - key: RAILS_LOG_TO_STDOUT value: ${LAGO_RAILS_STDOUT:-true} - key: SENTRY_DSN value: ${SENTRY_DSN} - key: LAGO_RSA_PRIVATE_KEY value: ${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded - key: RSA_PRIVATE_KEY value: ${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded - key: ENCRYPTION_PRIMARY_KEY value: ${LAGO_ENCRYPTION_PRIMARY_KEY:-your-encrpytion-primary-key} - key: ENCRYPTION_DETERMINISTIC_KEY value: ${LAGO_ENCRYPTION_DETERMINISTIC_KEY:-your-encrpytion-deterministic-key} - key: ENCRYPTION_KEY_DERIVATION_SALT value: ${LAGO_ENCRYPTION_KEY_DERIVATION_SALT:-your-encrpytion-derivation-salt} - key: LAGO_FRONT_URL value: ${LAGO_FRONT_URL:-http://localhost} - key: LAGO_USE_AWS_S3 value: ${LAGO_USE_AWS_S3:-false} - key: LAGO_AWS_S3_ACCESS_KEY_ID value: ${LAGO_AWS_S3_ACCESS_KEY_ID:-azerty123456} - key: LAGO_AWS_S3_SECRET_ACCESS_KEY value: ${LAGO_AWS_S3_SECRET_ACCESS_KEY:-azerty123456} - key: LAGO_AWS_S3_REGION value: ${LAGO_AWS_S3_REGION:-us-east-1} - key: LAGO_AWS_S3_BUCKET value: ${LAGO_AWS_S3_BUCKET:-bucket} - key: LAGO_AWS_S3_ENDPOINT value: ${LAGO_AWS_S3_ENDPOINT} - key: LAGO_USE_GCS value: ${LAGO_USE_GCS:-false} - key: LAGO_GCS_PROJECT value: ${LAGO_GCS_PROJECT:-} - key: LAGO_GCS_BUCKET value: ${LAGO_GCS_BUCKET:-} - key: LAGO_PDF_URL value: ${LAGO_PDF_URL:-http://pdf:3000} - key: LAGO_REDIS_CACHE_URL value: redis://${LAGO_REDIS_CACHE_HOST:-redis}:${LAGO_REDIS_CACHE_PORT:-6379} - key: LAGO_REDIS_CACHE_PASSWORD value: ${LAGO_REDIS_CACHE_PASSWORD} - key: LAGO_DISABLE_SEGMENT value: ${LAGO_DISABLE_SEGMENT} api-clock: container_name: lago-clock image: getlago/api:v0.53.0-beta restart: unless-stopped depends_on: - api command: ["./scripts/start.clock.sh"] environment: - LAGO_API_URL=${LAGO_API_URL:-http://localhost:3000} - DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago} - REDIS_URL=redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379} - REDIS_PASSWORD=${REDIS_PASSWORD} - SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64} - RAILS_ENV=production - RAILS_LOG_TO_STDOUT=${LAGO_RAILS_STDOUT:-true} - SENTRY_DSN=${SENTRY_DSN} - LAGO_RSA_PRIVATE_KEY=${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded - RSA_PRIVATE_KEY=${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded - ENCRYPTION_PRIMARY_KEY=${LAGO_ENCRYPTION_PRIMARY_KEY:-your-encrpytion-primary-key} - ENCRYPTION_DETERMINISTIC_KEY=${LAGO_ENCRYPTION_DETERMINISTIC_KEY:-your-encrpytion-deterministic-key} - ENCRYPTION_KEY_DERIVATION_SALT=${LAGO_ENCRYPTION_KEY_DERIVATION_SALT:-your-encrpytion-derivation-salt} xz pdf: image: getlago/lago-gotenberg:7 databases: - name: amorc-lago-db databaseName: lago-db # optional (Render may add a suffix) user: adrian # optional ipAllowList: [] # only allow internal connections # docker-compose.yml (ORIGINAL FILE FROM LAGO) ------------------------------- version: "3.8" volumes: lago_postgres_data: lago_redis_data: lago_storage_data: services: db: image: postgres:14.0-alpine container_name: lago-db restart: unless-stopped environment: POSTGRES_DB: ${POSTGRES_DB:-lago} POSTGRES_USER: ${POSTGRES_USER:-lago} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme} PGDATA: /data/postgres PGPORT: ${POSTGRES_PORT:-5432} volumes: - lago_postgres_data:/data/postgres ports: - ${POSTGRES_PORT:-5432}:${POSTGRES_PORT:-5432} redis: image: redis:6.2-alpine container_name: lago-redis restart: unless-stopped command: --port ${REDIS_PORT:-6379} volumes: - lago_redis_data:/data ports: - ${REDIS_PORT:-6379}:${REDIS_PORT:-6379} api: container_name: lago-api image: getlago/api:v0.53.0-beta restart: unless-stopped depends_on: - db - redis command: ["./scripts/start.sh"] healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3000"] environment: - LAGO_API_URL=${LAGO_API_URL:-http://localhost:3000} - DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago} - REDIS_URL=redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379} - REDIS_PASSWORD=${REDIS_PASSWORD} - SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64} - RAILS_ENV=production - RAILS_LOG_TO_STDOUT=${LAGO_RAILS_STDOUT:-true} - SENTRY_DSN=${SENTRY_DSN} - LAGO_FRONT_URL=${LAGO_FRONT_URL:-http://localhost} - RSA_PRIVATE_KEY=${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded - LAGO_RSA_PRIVATE_KEY=${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded - LAGO_SIDEKIQ_WEB=${LAGO_SIDEKIQ_WEB} - ENCRYPTION_PRIMARY_KEY=${LAGO_ENCRYPTION_PRIMARY_KEY:-your-encrpytion-primary-key} - ENCRYPTION_DETERMINISTIC_KEY=${LAGO_ENCRYPTION_DETERMINISTIC_KEY:-your-encrpytion-deterministic-key} - ENCRYPTION_KEY_DERIVATION_SALT=${LAGO_ENCRYPTION_KEY_DERIVATION_SALT:-your-encrpytion-derivation-salt} - LAGO_USE_AWS_S3=${LAGO_USE_AWS_S3:-false} - LAGO_AWS_S3_ACCESS_KEY_ID=${LAGO_AWS_S3_ACCESS_KEY_ID:-azerty123456} - LAGO_AWS_S3_SECRET_ACCESS_KEY=${LAGO_AWS_S3_SECRET_ACCESS_KEY:-azerty123456} - LAGO_AWS_S3_REGION=${LAGO_AWS_S3_REGION:-us-east-1} - LAGO_AWS_S3_BUCKET=${LAGO_AWS_S3_BUCKET:-bucket} - LAGO_AWS_S3_ENDPOINT=${LAGO_AWS_S3_ENDPOINT} - LAGO_USE_GCS=${LAGO_USE_GCS:-false} - LAGO_GCS_PROJECT=${LAGO_GCS_PROJECT:-} - LAGO_GCS_BUCKET=${LAGO_GCS_BUCKET:-} - LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000} - LAGO_REDIS_CACHE_URL=redis://${LAGO_REDIS_CACHE_HOST:-redis}:${LAGO_REDIS_CACHE_PORT:-6379} - LAGO_REDIS_CACHE_PASSWORD=${LAGO_REDIS_CACHE_PASSWORD} - LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT} - LAGO_OAUTH_PROXY_URL=https://proxy.getlago.com - LAGO_LICENSE=${LAGO_LICENSE:-} # - SIDEKIQ_EVENTS=true volumes: - lago_storage_data:/app/storage # If using GCS, you need to put the credentials keyfile here #- gcs_keyfile.json:/app/gcs_keyfile.json ports: - ${API_PORT:-3000}:3000 front: container_name: lago-front image: getlago/front:v0.53.0-beta restart: unless-stopped # Use this command if you want to use SSL with Let's Encrypt # command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'" depends_on: - api environment: - API_URL=${LAGO_API_URL:-http://localhost:3000} - APP_ENV=${APP_ENV:-production} - CODEGEN_API=${LAGO_API_URL:-http://localhost:3000} - LAGO_DISABLE_SIGNUP=${LAGO_DISABLE_SIGNUP:-false} - LAGO_OAUTH_PROXY_URL=https://proxy.getlago.com - SENTRY_DSN=${SENTRY_DSN_FRONT} ports: - ${FRONT_PORT:-80}:80 # - 443:443 # Using SSL with Let's Encrypt # volumes: # - ./extra/nginx-letsencrypt.conf:/etc/nginx/conf.d/default.conf # - ./extra/certbot/conf:/etc/letsencrypt # - ./extra/certbot/www:/var/www/certbot # Using SSL with self signed certificates # volumes: # - ./extra/nginx-selfsigned.conf:/etc/nginx/conf.d/default.conf # - ./extra/ssl/nginx-selfsigned.crt:/etc/ssl/certs/nginx-selfsigned.crt # - ./extra/ssl/nginx-selfsigned.key:/etc/ssl/private/nginx-selfsigned.key # - ./extra/ssl/dhparam.pem:/etc/ssl/certs/dhparam.pem # Only used for SSL support with Let's Encrypt # certbot: # image: certbot/certbot # entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'" # volumes: # - ./extra/certbot/conf:/etc/letsencrypt # - ./extra/certbot/www:/var/www/certbot api-worker: container_name: lago-worker image: getlago/api:v0.53.0-beta restart: unless-stopped depends_on: - api command: ["./scripts/start.worker.sh"] healthcheck: test: ["CMD-SHELL", "bundle exec sidekiqmon | grep $(hostname) || exit 1"] environment: - LAGO_API_URL=${LAGO_API_URL:-http://localhost:3000} - DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago} - REDIS_URL=redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379} - REDIS_PASSWORD=${REDIS_PASSWORD} - SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64} - RAILS_ENV=production - RAILS_LOG_TO_STDOUT=${LAGO_RAILS_STDOUT:-true} - SENTRY_DSN=${SENTRY_DSN} - LAGO_RSA_PRIVATE_KEY=${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded - RSA_PRIVATE_KEY=${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded - ENCRYPTION_PRIMARY_KEY=${LAGO_ENCRYPTION_PRIMARY_KEY:-your-encrpytion-primary-key} - ENCRYPTION_DETERMINISTIC_KEY=${LAGO_ENCRYPTION_DETERMINISTIC_KEY:-your-encrpytion-deterministic-key} - ENCRYPTION_KEY_DERIVATION_SALT=${LAGO_ENCRYPTION_KEY_DERIVATION_SALT:-your-encrpytion-derivation-salt} - LAGO_FRONT_URL=${LAGO_FRONT_URL:-http://localhost} - LAGO_USE_AWS_S3=${LAGO_USE_AWS_S3:-false} - LAGO_AWS_S3_ACCESS_KEY_ID=${LAGO_AWS_S3_ACCESS_KEY_ID:-azerty123456} - LAGO_AWS_S3_SECRET_ACCESS_KEY=${LAGO_AWS_S3_SECRET_ACCESS_KEY:-azerty123456} - LAGO_AWS_S3_REGION=${LAGO_AWS_S3_REGION:-us-east-1} - LAGO_AWS_S3_BUCKET=${LAGO_AWS_S3_BUCKET:-bucket} - LAGO_AWS_S3_ENDPOINT=${LAGO_AWS_S3_ENDPOINT} - LAGO_USE_GCS=${LAGO_USE_GCS:-false} - LAGO_GCS_PROJECT=${LAGO_GCS_PROJECT:-} - LAGO_GCS_BUCKET=${LAGO_GCS_BUCKET:-} - LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000} - LAGO_REDIS_CACHE_URL=redis://${LAGO_REDIS_CACHE_HOST:-redis}:${LAGO_REDIS_CACHE_PORT:-6379} - LAGO_REDIS_CACHE_PASSWORD=${LAGO_REDIS_CACHE_PASSWORD} - LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT} # - SIDEKIQ_EVENTS=true volumes: - lago_storage_data:/app/storage # You can uncomment this if you want to use a dedicated Sidekiq worker for the event ingestion. # It is recommendend if you have a high usage of events to not impact the other Sidekiq Jobs. #api-events-worker: # container_name: lago-events-worker # image: getlago/api:v0.53.0-beta # restart: unless-stopped # depends_on: # - api # command: ["./scripts/start.events.worker.sh"] # environment: # - LAGO_API_URL=${LAGO_API_URL:-http://localhost:3000} # - DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago} # - REDIS_URL=redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379} # - REDIS_PASSWORD=${REDIS_PASSWORD} # - SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64} # - RAILS_ENV=production # - RAILS_LOG_TO_STDOUT=${LAGO_RAILS_STDOUT:-true} # - SENTRY_DSN=${SENTRY_DSN} # - LAGO_RSA_PRIVATE_KEY=${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded # - RSA_PRIVATE_KEY=${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded # - ENCRYPTION_PRIMARY_KEY=${LAGO_ENCRYPTION_PRIMARY_KEY:-your-encrpytion-primary-key} # - ENCRYPTION_DETERMINISTIC_KEY=${LAGO_ENCRYPTION_DETERMINISTIC_KEY:-your-encrpytion-deterministic-key} # - ENCRYPTION_KEY_DERIVATION_SALT=${LAGO_ENCRYPTION_KEY_DERIVATION_SALT:-your-encrpytion-derivation-salt} # - LAGO_FRONT_URL=${LAGO_FRONT_URL:-http://localhost} # - LAGO_USE_AWS_S3=${LAGO_USE_AWS_S3:-false} # - LAGO_AWS_S3_ACCESS_KEY_ID=${LAGO_AWS_S3_ACCESS_KEY_ID:-azerty123456} # - LAGO_AWS_S3_SECRET_ACCESS_KEY=${LAGO_AWS_S3_SECRET_ACCESS_KEY:-azerty123456} # - LAGO_AWS_S3_REGION=${LAGO_AWS_S3_REGION:-us-east-1} # - LAGO_AWS_S3_BUCKET=${LAGO_AWS_S3_BUCKET:-bucket} # - LAGO_AWS_S3_ENDPOINT=${LAGO_AWS_S3_ENDPOINT} # - LAGO_USE_GCS=${LAGO_USE_GCS:-false} # - LAGO_GCS_PROJECT=${LAGO_GCS_PROJECT:-} # - LAGO_GCS_BUCKET=${LAGO_GCS_BUCKET:-} # - LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000} # - LAGO_REDIS_CACHE_URL=redis://${LAGO_REDIS_CACHE_HOST:-redis}:${LAGO_REDIS_CACHE_PORT:-6379} # - LAGO_REDIS_CACHE_PASSWORD=${LAGO_REDIS_CACHE_PASSWORD} # - LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT} # - SIDEKIQ_EVENTS=true api-clock: container_name: lago-clock image: getlago/api:v0.53.0-beta restart: unless-stopped depends_on: - api command: ["./scripts/start.clock.sh"] environment: - LAGO_API_URL=${LAGO_API_URL:-http://localhost:3000} - DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago} - REDIS_URL=redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379} - REDIS_PASSWORD=${REDIS_PASSWORD} - SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64} - RAILS_ENV=production - RAILS_LOG_TO_STDOUT=${LAGO_RAILS_STDOUT:-true} - SENTRY_DSN=${SENTRY_DSN} - LAGO_RSA_PRIVATE_KEY=${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded - RSA_PRIVATE_KEY=${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded - ENCRYPTION_PRIMARY_KEY=${LAGO_ENCRYPTION_PRIMARY_KEY:-your-encrpytion-primary-key} - ENCRYPTION_DETERMINISTIC_KEY=${LAGO_ENCRYPTION_DETERMINISTIC_KEY:-your-encrpytion-deterministic-key} - ENCRYPTION_KEY_DERIVATION_SALT=${LAGO_ENCRYPTION_KEY_DERIVATION_SALT:-your-encrpytion-derivation-salt} pdf: image: getlago/lago-gotenberg:7 # render.example.yml (from render.com) ---------------------------------------------- - type: web name: webdis runtime: docker repo: https://github.com/render-examples/webdis.git # optional region: oregon # optional (defaults to oregon) plan: standard # optional (defaults to starter instance type) branch: master # optional (defaults to master) rootDir: webdis dockerCommand: ./webdis.sh # optional (defaults to Dockerfile command) numInstances: 3 # optional (defaults to 1) healthCheckPath: / envVars: - key: REDIS_HOST fromService: type: redis name: lightning property: host # available properties are listed below - key: REDIS_PORT fromService: type: redis name: lightning property: port - fromGroup: conc-settings # A private Minio instance - type: pserv name: minio runtime: docker repo: https://github.com/render-examples/minio.git # optional envVars: - key: MINIO_ROOT_PASSWORD generateValue: true # will generate a base64-encoded 256-bit secret - key: MINIO_ROOT_USER sync: false # placeholder for a value to be added in the dashboard - key: PORT value: 10000 disk: name: data mountPath: /data sizeGB: 10 # optional # A Ruby web service - type: web name: sinatra runtime: ruby repo: https://github.com/render-examples/sinatra scaling: minInstances: 1 maxInstances: 3 targetMemoryPercent: 60 # optional if targetCPUPercent is set targetCPUPercent: 60 # optional if targetMemory is set buildCommand: bundle install startCommand: bundle exec ruby main.rb preDeployCommand: bundle exec ruby migrate.rb domains: - test0.render.com - test1.render.com envVars: - key: STRIPE_API_KEY value: Z2V0IG91dHRhIGhlcmUhCg - key: DB_URL fromDatabase: name: elephant property: connectionString - key: MINIO_ROOT_PASSWORD fromService: type: pserv name: minio envVarKey: MINIO_ROOT_PASSWORD autoDeploy: false # optional # A Python cron job that runs every hour - type: cron name: date runtime: python schedule: "0 * * * *" buildCommand: "true" # ensure it's a string startCommand: date repo: https://github.com/render-examples/docker.git # optional # A background worker that consumes a queue - type: worker name: queue runtime: docker dockerfilePath: ./sub/Dockerfile # optional dockerContext: ./sub/src # optional branch: queue # optional # A static site - type: web name: my blog runtime: static buildCommand: yarn build staticPublishPath: ./build pullRequestPreviewsEnabled: true # optional buildFilter: paths: - src/**/*.js ignoredPaths: - src/**/*.test.js headers: - path: /* name: X-Frame-Options value: sameorigin routes: - type: redirect source: /old destination: /new - type: rewrite source: /a/* destination: /a # A Redis instance - type: redis name: lightning ipAllowList: # required - source: 0.0.0.0/0 description: everywhere plan: free # optional (defaults to starter instance type) maxmemoryPolicy: noeviction # optional (defaults to allkeys-lru) databases: - name: elephant databaseName: mydb # optional (Render may add a suffix) user: adrian # optional ipAllowList: # optional (defaults to allow all) - source: 203.0.113.4/30 description: office - source: 198.51.100.1 description: home - name: private database databaseName: private ipAllowList: [] # only allow internal connections envVarGroups: - name: db-settings envVars: - key: POSTGRES_DB value: ${POSTGRES_DB:-lago} - key: POSTGRES_USER value ${POSTGRES_USER:-lago} - key: POSTGRES_PASSWORD value: ${POSTGRES_PASSWORD:-changeme} - key: PGDATA value: /data/postgres - key: PGPORT value: ${POSTGRES_PORT:-5432}

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully