docker-compose.yml
Example Docker Compose
Setting up database in Docker
Environment in yaml file:
Tied with config file
In the config file, all the environment variables are set
Then you can use config file in Flask SQL connector
Running a project that uses Docker Compose
Running a project that uses Docker Compose build arguments
The build argument is defined in the docker-compose.yml
file under args
Seeding a database with a SQL file in Docker Compose
Running a command without a Docker container being up
This is especially useful with continuous integration testing like Travis CI. Here is an example:
Last updated