Skip to content

linderun/docker-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentation

Install

1. Clone the source code.

git clone https://github.com/linderun/docker-compose.git

2. Set the basic config

cd docker-compose && cp .env.example .env

Edit the .env file and set the config for the docker compose after you copy the .env.example file.

3. Build your app with Compose

docker-compose build

4. Run your app with Compose

docker-compose up -d

5. Experiment with some other commands

If you want to run your services in the background, you can pass the -d flag (for “detached” mode) to docker-compose up and use docker-compose ps to see what is currently running:

docker-compose ps

The docker-compose run command allows you to run one-off commands for your services. For example, to see what environment variables are available to the nginx service:

docker-compose run nginx env

If you started Compose with docker-compose up -d, stop your services once you’ve finished with them:

docker-compose stop

Contributors

License

The project is open-sourced software licensed under the MIT license.

Web Site: Darren Lin

About

docker compose demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published