Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
4e0af7e0
Commit
4e0af7e0
authored
Aug 27, 2016
by
Mahmoud Zalt
Committed by
GitHub
Aug 27, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #259 from computerfr33k/master
Update caddy server and log to file
parents
d6b091df
b2525585
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
Caddyfile
caddy/Caddyfile
+3
-2
Dockerfile
caddy/Dockerfile
+6
-7
docker-compose.yml
docker-compose.yml
+1
-0
No files found.
caddy/Caddyfile
View file @
4e0af7e0
...
@@ -9,9 +9,10 @@ rewrite {
...
@@ -9,9 +9,10 @@ rewrite {
ext /
ext /
to /index.php?{query}
to /index.php?{query}
}
}
gzip
browse
browse
log
stdout
log
/var/log/caddy/access.log
errors
stderr
errors
/var/log/caddy/error.log
# Uncomment to enable TLS (HTTPS)
# Uncomment to enable TLS (HTTPS)
# Change the first list to listen on port 443 when enabling TLS
# Change the first list to listen on port 443 when enabling TLS
#tls self_signed
#tls self_signed
caddy/Dockerfile
View file @
4e0af7e0
...
@@ -2,7 +2,9 @@ FROM alpine:3.4
...
@@ -2,7 +2,9 @@ FROM alpine:3.4
MAINTAINER
Eric Pfeiffer <computerfr33k@users.noreply.github.com>
MAINTAINER
Eric Pfeiffer <computerfr33k@users.noreply.github.com>
LABEL
caddy_version="0.9.0" architecture="amd64"
ENV
caddy_version=0.9.1
LABEL
caddy_version="$caddy_version" architecture="amd64"
RUN
apk update
\
RUN
apk update
\
&&
apk upgrade
\
&&
apk upgrade
\
...
@@ -10,16 +12,13 @@ RUN apk update \
...
@@ -10,16 +12,13 @@ RUN apk update \
RUN
curl
--silent
--show-error
--fail
--location
\
RUN
curl
--silent
--show-error
--fail
--location
\
--header
"Accept: application/tar+gzip, application/x-gzip, application/octet-stream"
-o
-
\
--header
"Accept: application/tar+gzip, application/x-gzip, application/octet-stream"
-o
-
\
"https://github.com/mholt/caddy/releases/download/v
0.9.0
/caddy_linux_amd64.tar.gz"
\
"https://github.com/mholt/caddy/releases/download/v
$caddy_version
/caddy_linux_amd64.tar.gz"
\
|
tar
--no-same-owner
-C
/usr/bin/
-xz
caddy_linux_amd64
\
|
tar
--no-same-owner
-C
/usr/bin/
-xz
caddy_linux_amd64
\
&&
mv
/usr/bin/caddy_linux_amd64 /usr/bin/caddy
\
&&
mv
/usr/bin/caddy_linux_amd64 /usr/bin/caddy
\
&&
chmod
0755 /usr/bin/caddy
\
&&
chmod
0755 /usr/bin/caddy
&&
/usr/bin/caddy
-version
EXPOSE
80 443 2015
EXPOSE
80 443 2015
WORKDIR
/var/www/laravel/public
WORKDIR
/var/www/laravel/public
ENTRYPOINT
["caddy"]
CMD
["/usr/bin/caddy", "-conf", "/etc/Caddyfile"]
CMD
["-conf", "/etc/Caddyfile"]
docker-compose.yml
View file @
4e0af7e0
...
@@ -206,6 +206,7 @@ services:
...
@@ -206,6 +206,7 @@ services:
-
"
2015:2015"
-
"
2015:2015"
volumes
:
volumes
:
-
./caddy/Caddyfile:/etc/Caddyfile
-
./caddy/Caddyfile:/etc/Caddyfile
-
./logs/caddy:/var/log/caddy
links
:
links
:
-
php-fpm
-
php-fpm
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment