Skip to content
An example Docker Compose using environment variables.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.env.dist
.gitignore
README.md
docker-compose.yml

README.md

Docker Compose Example

Setting up a simple application with docker-compose using environment variables.

Requirements

You'll of course need to make sure you have Docker and Compose installed at the very least:

Getting Started

All you'll need to do now is copy your .env.dist file to .env so your environment can load, and then run docker-compose to build the environment locally (or elsewhere).

cp .env.dist .env

Now you'll want to change the values in .env appropriately..

docker-compose up -d
You can’t perform that action at this time.