From 5b07fbb9c4f8a33f3dc4c21ccac789bacdf43855 Mon Sep 17 00:00:00 2001 From: Sascha Brendel Date: Tue, 23 Apr 2019 10:19:05 +0200 Subject: [PATCH 1/2] Switched base image to fix recurrent caddy issues. (#2095) --- caddy/Dockerfile | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/caddy/Dockerfile b/caddy/Dockerfile index 1f2ed644..c9b74b70 100644 --- a/caddy/Dockerfile +++ b/caddy/Dockerfile @@ -1,30 +1,5 @@ -FROM golang:alpine +FROM abiosoft/caddy:no-stats -LABEL maintainer="Huadong Zuo " +CMD ["--conf", "/etc/caddy/Caddyfile", "--log", "stdout", "--agree=true"] -RUN apk add --no-cache \ - openssh \ - git \ - build-base \ - && mkdir -p $GOPATH/src/golang.org/x/ \ - && cd $GOPATH/src/golang.org/x/ \ - && git clone https://github.com/golang/sys.git sys \ - && go get github.com/abiosoft/caddyplug/caddyplug \ - && caddyplug install-caddy \ - apk del build-base - -ARG plugins="cors" - -## ARG plugins="cors cgi cloudflare azure linode" - -RUN caddyplug install ${plugins} - -RUN apk add --no-cache inotify-tools \ - && echo -e "#!/bin/sh\nwhile inotifywait -e modify /etc/caddy; do\n\tpkill caddy\ndone " >> /start.sh \ - && chmod +x /start.sh - -EXPOSE 80 443 - -WORKDIR /var/www/public - -CMD ["sh","-c","/start.sh & /usr/bin/caddy -conf /etc/caddy/Caddyfile -agree"] +EXPOSE 80 443 2015 From f5c80cd2514d6fd9aec130a7aec8f1394f0027b0 Mon Sep 17 00:00:00 2001 From: Przemek Dziewa Date: Tue, 23 Apr 2019 10:22:55 +0200 Subject: [PATCH 2/2] Added docker-compose run workspace example (#2094) --- DOCUMENTATION/content/guides/index.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DOCUMENTATION/content/guides/index.md b/DOCUMENTATION/content/guides/index.md index ec7f9036..388edf42 100644 --- a/DOCUMENTATION/content/guides/index.md +++ b/DOCUMENTATION/content/guides/index.md @@ -69,6 +69,14 @@ Note that more containers are available, find them in the [docs](http://laradock docker-compose exec workspace bash ``` +## Execute commands + +If you want to only execute some command and don't want to enter bash, you can execute `docker-compose run workspace `. + +``` +docker-compose run workspace php artisan migrate +``` + ## Install and configure Laravel Let's install Laravel's dependencies, add the `.env` file, generate the key and give proper permissions to the cache folder.