Last active
April 14, 2019 18:25
-
-
Save jasonmccallister/12c18b9eecd866a30ec5cdbca2c82d3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DEFAULT: local | |
IMAGE ?= your-docker-image | |
TAG ?= staging | |
REGISTRY ?= your-registry-info | |
build: | |
docker build . -t $(IMAGE):$(TAG) | |
down: | |
docker-compose down | |
local: | |
docker-compose exec app ./craft install/craft \ | |
--interactive \ | |
--username=developer \ | |
--password=Password1! \ | |
[email protected] \ | |
--site-name="My Company" \ | |
--site-url="http://local.mycompany.com:8080" \ | |
--language=en-US | |
push: | |
docker push "$(REGISTRY)/$(IMAGE):$(TAG)" | |
restart: down up | |
stop: | |
docker-compose stop | |
tag: | |
docker tag "$(IMAGE):$(TAG)" "$(REGISTRY)/$(IMAGE):$(TAG)" | |
up: | |
docker-compose up -d | |
xdebug: | |
docker-compose exec app /usr/local/bin/docker-php-source extract | |
docker-compose exec app pecl install xdebug | |
docker-compose exec app /usr/local/bin/docker-php-ext-enable xdebug | |
docker-compose exec app /usr/local/bin/docker-php-source delete | |
docker-compose stop | |
docker-compose up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment