Skip to content

updated doc for adding env #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/onboarding.md
Original file line number Diff line number Diff line change
@@ -58,3 +58,22 @@ Raise a PR with the following changes
reverse_proxy <service-name-in-docker-compose>:<service-port>
}
```

### 3. Adding environment variables
- Create a global.env file and add all the service-urls and service-creds. Import it to all stateless services. eg:

- For environments specific to service, set them under environment section of the service in docker-compose file. And add variables to sample.env files.
eg:
```
services:
auth_service:
image: ${DOCKER_REGISTRY_URL:-ghcr.io}/${org}/auth-service:${AUTH_SERVICE_IMAGE_TAG:-${DEFAULT_IMAGE_TAG:?DEFAULT_IMAGE_TAG is not set}}
restart: always
mem_limit: ${AUTH_SERVICE_MEM_LIMIT:-${DEFAULT_MEM_LIMIT:-256m}}
cpus: ${AUTH_SERVICE_CPU_LIMIT:-${DEFAULT_CPU_LIMIT:-0.5}}
env_file:
- ../../global.env
environment:
FUSIONAUTH_URL: http://fusionauth:9011
FUSIONAUTH_KEY: ${FUSIONAUTH_API_KEY}
```