Compare commits

..

18 Commits
v2 ... master

Author SHA1 Message Date
630c80dc1b Changing Caddyfile location
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-20 00:39:47 +01:00
03c15f6884 Fix start script to support with and without php
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-20 00:37:50 +01:00
ed7ec2a709 Fixing publish bug
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-19 20:42:16 +01:00
Fabian Stamm
7c70d05ec4 Merge pull request 'Add image without and with PHP Support' (#1) from base into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: https://git.stamm.me/Ops/CaddyDocker/pulls/1
2022-02-19 19:40:12 +00:00
6ba1f99bbc Add image without and with PHP Support
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-02-19 20:38:36 +01:00
Fabian Stamm
28b05d69b2 Update to 2.4.5
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2021-10-10 12:35:33 +00:00
Fabian Stamm
f0586e3af4 Extend php support to include Nextcloud capability
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2021-05-24 22:25:17 +02:00
Fabian Stamm
f222c7f241 Make it work with new caddy version
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-24 22:04:57 +02:00
Fabian Stamm
a701b7f717 Update to caddy 2.4.1
Some checks failed
continuous-integration/drone/push Build is failing
2021-05-23 20:17:14 +00:00
Fabian Stamm
99bd881adf Fix error
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-21 19:54:57 +02:00
Fabian Stamm
1d936181e7 Start php
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-21 19:42:01 +02:00
Fabian Stamm
33a63cf4aa Rollback because of errors
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-16 00:41:51 +02:00
Fabian Stamm
484b4d6f16 Add php
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-15 11:13:18 +02:00
Fabian Stamm
0f5aa75b90 Updating caddy to 2.2.3
Some checks failed
continuous-integration/drone/push Build is failing
2021-04-15 10:46:28 +02:00
Fabian Stamm
af677e150f Update caddy
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2020-12-19 19:15:05 +01:00
Fabian Stamm
7748886a37 Fix CI
Some checks failed
continuous-integration/drone/push Build is failing
2020-12-19 19:00:15 +01:00
Fabian Stamm
60f2183c81 Updating version
Some checks failed
continuous-integration/drone/push Build is failing
2020-11-04 23:59:11 +01:00
Fabian Stamm
5d57259aef Upgrading to Caddy 2.1
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
2020-06-26 16:41:42 +02:00
4 changed files with 44 additions and 24 deletions

View File

@ -3,7 +3,7 @@ type: docker
name: default
steps:
- name: Publish to docker
- name: Publish Base to docker
image: plugins/docker
settings:
username:
@ -11,9 +11,26 @@ steps:
password:
from_secret: docker_password
auto_tag: true
repo: hibas123.azurecr.io/caddy
registry: hibas123.azurecr.io
debug: true
repo: docker.hibas123.de/caddy
registry: docker.hibas123.de
debug: false
when:
branch: [master]
event:
exclude:
- pull_request
- name: Publish PHP to docker
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
dockerfile: Dockerfile.php
repo: docker.hibas123.de/caddy-php
registry: docker.hibas123.de
debug: false
when:
branch: [master]
event:

View File

@ -1,23 +1,10 @@
FROM caddy:builder AS builder
RUN caddy-builder \
github.com/caddy-dns/cloudflare
FROM caddy:2.0.0
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
FROM docker.io/alpine:3
LABEL maintainer "Fabian Stamm <dev@fabianstamm.de>"
# RUN apk add --no-cache \
# ca-certificates \
# git \
# mailcap \
# openssh-client \
# tzdata \
# bash \
# curl
RUN apk add --no-cache curl
RUN curl -o /usr/bin/caddy "https://caddyserver.com/api/download?os=linux&arch=amd64&p=github.com%2Fcaddy-dns%2Fcloudflare&p=github.com%2FRussellLuo%2Fcaddy-ext%2Fratelimit&p=github.com%2Ftechknowlogick%2Fcertmagic-s3&idempotency=81742055656173"
RUN chmod +x /usr/bin/caddy
#Validate install
RUN caddy version
@ -25,10 +12,11 @@ RUN caddy list-modules
EXPOSE 80 443 2019
VOLUME [ "/data", "/config" ]
VOLUME [ "/config" ]
WORKDIR /srv
COPY Caddyfile /etc/Caddyfile
COPY start.sh /start.sh
RUN chmod +x /start.sh
CMD ["caddy", "run", "--config", "/etc/Caddyfile", "--adapter", "caddyfile"]
CMD ["/bin/sh", "/start.sh"]

8
Dockerfile.php Normal file
View File

@ -0,0 +1,8 @@
FROM docker.hibas123.de/caddy
RUN apk add --no-cache openssl libxml2 php7 php7-fpm php7-opcache php7-curl php7-ctype php7-dom php7-gd php7-iconv \
php7-json php7-xml php7-mbstring php7-openssl php7-posix php7-session php7-simplexml php7-xmlreader php7-xmlwriter \
php7-zip php7-zlib php7-pdo_sqlite php7-pdo_mysql php7-pdo_pgsql php7-fileinfo php7-bz2 php7-intl php7-ldap \
php7-ftp php7-imap php7-bcmath php7-gmp php7-exif
RUN cat /etc/php7/php-fpm.d/www.conf | sed 's/listen = 127.0.0.1:9000/listen = \/run\/php-fpm.sock/g' > /etc/php7/php-fpm.d/www.conf

7
start.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
if [ -f "/usr/sbin/php-fpm7" ]; then
/usr/sbin/php-fpm7 --allow-to-run-as-root -D --fpm-config /etc/php7/php-fpm.conf
fi
caddy run --config /config/Caddyfile --adapter caddyfile