docker/Makefile

21 lines
848 B
Makefile
Raw Normal View History

2023-12-09 12:54:38 +01:00
init:
@bash mobilizon/mobilizon/docker/message.sh "Start"
make start
setup: stop
@bash mobilizon/mobilizon/docker/message.sh "Compiling everything"
docker-compose run --rm -e HEX_UNSAFE_HTTPS=1 mobilizon bash -c 'mix hex.config unsafe_https true; mix deps.get; npm ci; npm run build:pictures; mix ecto.create; mix ecto.migrate'
migrate:
docker-compose run --rm -e HEX_UNSAFE_HTTPS=1 mobilizon mix ecto.migrate
logs:
docker-compose logs -f
start: stop
@bash mobilizon/mobilizon/docker/message.sh "Starting WordPress and Mobilizon with Docker"
docker-compose up -d
@bash mobilizon/mobilizon/docker/message.sh "Docker containers started"
stop:
@bash mobilizon/mobilizon/docker/message.sh "Stopping WordPress and Mobilizon"
docker-compose down
@bash mobilizon/mobilizon/docker/message.sh "WordPress and Mobilizon are stopped"
target: init