Skip to content
Draft
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
14 changes: 12 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,21 @@ services:
stdin_open: true
tty: true
environment: &lando-env
# To simulate a remote environment, uncomment the following lines...
# ENVIRONMENT: development
# DJANGO_SETTINGS_MODULE: lando.remote_settings

# ... and comment this one.
ENVIRONMENT: local
#
# This will likely trigger errors when running the `setup_dev` and
# `collectstatic` commands below. They need to be manually disabled
# during such a simulation.
Comment on lines +177 to +186
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this may be more confusing (especially in the long term) than helpful. I would suggest, instead of adding a comment like this here, maybe we can add a separate make command to "simulate" a specific scenario (e.g., using remote_settings with "local" or "development" environment).


<<: *pulse_env
DJANGO_LOG_LEVEL: debug
LOG_LEVEL: INFO
DEFAULT_DB_HOST: lando.db
ENVIRONMENT: local
PHABRICATOR_URL: http://phabricator.test
PHABRICATOR_UNPRIVILEGED_API_KEY: api-qdaethogwpld3wmn2cnhbh57wkux
TREESTATUS_URL: https://treestatus.mozilla-releng.net
Expand Down Expand Up @@ -258,7 +268,7 @@ services:

lando.db:
platform: linux/amd64
image: postgres
image: postgres:17
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down