Skip to content

Commit

Permalink
Adjust mariadb docker settings and connection strings
Browse files Browse the repository at this point in the history
Reflect the use of external containers in connection strings, and pass params into our calls to docker run
  • Loading branch information
mrchrisadams committed May 10, 2024
1 parent fc6a429 commit bc2967e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .env.gitpod
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ PORT=9000
PYTHONDONTWRITEBYTECODE=1

SECRET_KEY='some-key'
DATABASE_URL=mysql://root:deploy@localhost:3306/greencheck
DATABASE_URL_READ_ONLY=mysql://root:deploy@localhost:3306/greencheck
DATABASE_URL=mysql://root@127.0.0.1:3306/greencheck
DATABASE_URL_READ_ONLY=mysql://root:deploy@127.0.0.1:3306/greencheck
EXPLORER_TOKEN="some-token"
MAILGUN_API_KEY="50 characters long-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

# used to stop defaulting to debug
DJANGO_SETTINGS_MODULE='greenweb.settings.development'

RABBITMQ_URL=amqp://guest:guest@localhost:5672/
RABBITMQ_URL=amqp://guest:guest@127.0.0.1:5672/


DOMAIN_SNAPSHOT_BUCKET = "tgwf-green-domains-dev"
Expand Down
10 changes: 4 additions & 6 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@ tasks:
command: >
docker run
--rm
--hostname green-mariadb
--hostname
--env green-mariadb
--env MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=True
--env MARIADB_DATABASE=greencheck
-p 3306:3306
mariadb:10.11
env:
MARIADB_USER: deploy
MARIADB_PASSWORD: deploy
MARIADB_ROOT_PASSWORD: deploy
MARIADB_DATABASE: greencheck
- name: mailhog
command: >
Expand Down

0 comments on commit bc2967e

Please sign in to comment.