Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jay-johnson/9bcdecbb797f8358e1b2555e333b52a3 to your computer and use it in GitHub Desktop.
Save jay-johnson/9bcdecbb797f8358e1b2555e333b52a3 to your computer and use it in GitHub Desktop.
Changing the Container's Configuration by editing the Compose file
$ cat docker-compose.yml | grep "=" | sort
- DATADIR=/var/lib/mysql
- DBADDRESS=127.0.0.1
- DBHOST=127.0.0.1
- DBINITIALIZER=/opt/db-loaders/schema/initialize_db.py
- DBNAME=stocks
- DBPASS=dbadmin123
- DBPORT=3306
- DBSCHEMA=/opt/db-loaders/schema/db_schema.py
- DBUSER=dbadmin
- REBUILD_DB_ON_START=1
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment