diff --git a/docs/django.md b/docs/django.md index 251a61901..1d6c915e3 100644 --- a/docs/django.md +++ b/docs/django.md @@ -60,8 +60,8 @@ First thing we need to do is set up the database connection. Replace the `DATABA 'NAME': 'docker', 'USER': 'docker', 'PASSWORD': 'docker', - 'HOST': os.environ.get('MYAPP_DB_1_PORT_5432_TCP_ADDR'), - 'PORT': os.environ.get('MYAPP_DB_1_PORT_5432_TCP_PORT'), + 'HOST': os.environ.get('DB_1_PORT_5432_TCP_ADDR'), + 'PORT': os.environ.get('DB_1_PORT_5432_TCP_PORT'), } } diff --git a/docs/rails.md b/docs/rails.md index 540248057..ea4620aa1 100644 --- a/docs/rails.md +++ b/docs/rails.md @@ -73,8 +73,8 @@ Open up your newly-generated `database.yml`. Replace its contents with the follo pool: 5 username: docker password: docker - host: <%= ENV.fetch('MYAPP_DB_1_PORT_5432_TCP_ADDR', 'localhost') %> - port: <%= ENV.fetch('MYAPP_DB_1_PORT_5432_TCP_PORT', '5432') %> + host: <%= ENV.fetch('DB_1_PORT_5432_TCP_ADDR', 'localhost') %> + port: <%= ENV.fetch('DB_1_PORT_5432_TCP_PORT', '5432') %> test: <<: *default