Files
Docker-Chevereto/docs/DOCKER-COMPOSE.md
Rodolfo Berrios 530326a5e0 🎉 https
2022-10-17 16:16:44 -03:00

1.2 KiB

Docker Compose

This provides shortcuts for running docker compose commands. By default it uses projects/prod.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=prod

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

Example:

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

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.