docker compose
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 .env file is a key-value file placed in the same directory as your docker-compose.yaml. It contains environment variables that will be loaded by Docker Compose.
Example .env file:
https://github.com/atomic-blend/backend/blob/main/.env.example
ENV=dev
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=
# MongoDB configuration (DO NOT CHANGE IF YOU ARE USING THE DOCKER COMPOSE)
MONGO_USERNAME=mongo_user
MONGO_PASSWORD=password
MONGO_HOST=mongodb
MONGO_PORT=27017
DATABASE_NAME=atomic-blend
MONGO_AUTH_SOURCE=admin
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
Last updated