Files
Docker-Chevereto/docs/DOCKER-COMPOSE.md
Rodolfo Berrios f551132914 defaults
2022-11-17 13:51:40 -03:00

1.4 KiB

Docker Compose

This provides shortcuts for running docker compose commands. By default it uses default.yml as compose file, customizable with the COMPOSE option.

make <command> <options>

Available options:

  • NAMESPACE=chevereto
  • VERSION=4.0
  • HTTP_PORT=80
  • HTTPS_PORT=443
  • HOSTNAME=localhost
  • HOSTNAME_PATH=/
  • PROTOCOL=http
  • COMPOSE=default

(*) For COMPOSE it points to a Docker compose file at ./projects.

Example:

make up HOSTNAME=que.chevere.org PORT=80

💡 TIP: To ease working with multiple projects use NAMESPACE to pass multiple options stored in a file.

Example:

make up NAMESPACE=quechevere

Up

make up

Up (daemon)

make up-d

Stop

make stop

Start

make start

Restart

make restart

Down

make down

Down volumes

make down--volumes

Troubleshoot

Check if you are running latest Docker version with Compose V2 docker compose (not docker-compose).

If Docker was included with your Linux distribution check for Install Docker Engine on Linux. Some distributions may be providing old docker engine for LTS compliance, make sure to follow Docker instructions.