Atomic Blend Docs
  • Platform Documentation
  • Developer's Guide
  • Atomic Blend
  • Roadmap
    • Roadmap
    • How to contribute ?
  • Features
    • How to use the App ?
    • Areas
    • Navigation
    • Account
      • Login
      • Register
      • Account Infos
        • Profile
        • Password
        • Delete Account
    • Tasks
      • Views
        • Overview
        • Today
        • Tags
      • Task Management
        • Add a new task
        • Delete a task
        • Edit a task
      • Mark a task as completed
      • Notifications
    • Calendar
      • Views
        • 3 days
        • Month
        • Day
    • Habits
      • Views
        • List
        • Overview
      • Habit Management
        • Create an habit
        • Edit an habit
        • Delete an habit
      • Scheduling
      • Log entries
      • Statistics
  • Self-hosting
    • Getting Started
      • docker compose
  • Security
    • Introduction
    • Encryption
    • KeySet
    • Mnemonic
    • Sharing Data Concept
    • Encrypted Notifications
  • Cloud SaaS
    • Overview
    • Cloud Provider
Powered by GitBook
On this page
  • Overview
  • Env file
  • Required Environment Variables
  1. Self-hosting
  2. Getting Started

docker compose

PreviousGetting StartedNextIntroduction

Last updated 1 month ago

Overview

Docker Compose uses environment variables to customize container configurations. These variables can be defined in multiple ways to support different deployment scenarios.

Env file

The file is a key-value file placed in the same directory as your . It contains environment variables that will be loaded by Docker Compose.

Example file:

Required Environment Variables

The following environment variables are required:

Env

  • ENV : the env of the project (dev / prod)

Database

  • DATABASE_NAME : The name of the database

SSO

  • SSO_SECRET: Secret to generate and sign JWT Secrets

Firebase (optional)

  • GOOGLE_APPLICATION_CREDENTIALS: The path of the google JSON credentials to use Firebase (for notifications)

  • FIREBASE_PROJECT_ID: The project ID of the Firebase Project

.env
docker-compose.yaml
.env
https://github.com/atomic-blend/backend/blob/main/.env.example
ENV=dev
DATABASE_NAME=atomic-blend
TASK_APP_URL=http://localhost:80

# define external DB
# MONGODB_URI=
## generate using "openssl rand 256 | base64 -w0"
SSO_SECRET=secret
GOOGLE_APPLICATION_CREDENTIALS=
FIREBASE_PROJECT_ID=
RESEND_API_KEY=