Remove caddy docker, I'm running elsewhere
Signed-off-by: Amy Aronsohn <WagThatTail@Me.com>
This commit is contained in:
parent
52f28712fb
commit
f309338a69
|
@ -1,3 +0,0 @@
|
|||
.git
|
||||
backup*
|
||||
update
|
|
@ -1,6 +0,0 @@
|
|||
onlyhavecans.works {
|
||||
proxy / http://gitea:3000
|
||||
|
||||
log stdout
|
||||
errors stdout
|
||||
}
|
21
Dockerfile
21
Dockerfile
|
@ -1,21 +0,0 @@
|
|||
FROM alpine:latest
|
||||
|
||||
RUN apk add --update curl tar
|
||||
|
||||
RUN curl --silent --show-error --fail --location \
|
||||
--header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \
|
||||
"https://caddyserver.com/download/linux/amd64?plugins=http.expires,http.realip&license=personal" \
|
||||
| tar --no-same-owner -C /usr/bin/ -xz caddy \
|
||||
&& chmod 0755 /usr/bin/caddy \
|
||||
&& /usr/bin/caddy -version \
|
||||
&& /usr/bin/caddy -plugins
|
||||
|
||||
EXPOSE 80 443 2015
|
||||
|
||||
VOLUME /root/.caddy /srv
|
||||
WORKDIR /srv
|
||||
|
||||
ADD Caddyfile /etc/Caddyfile
|
||||
|
||||
ENTRYPOINT ["/usr/bin/caddy"]
|
||||
CMD ["--conf", "/etc/Caddyfile", "--log", "stdout"]
|
|
@ -12,16 +12,13 @@ I do it this way because I prioritize;
|
|||
|
||||
## Startup
|
||||
|
||||
1. Set up your DNS
|
||||
1. Clone this into a directory you wish to run and store files in
|
||||
1. Change the domain name in `Caddyfile`
|
||||
1. Install docker
|
||||
1. Run with `docker-compose up -d --build`
|
||||
1. Optionally put a webserver in front for ssl, I use caddy
|
||||
|
||||
## Maintence
|
||||
|
||||
1. Upgrade Caddy with `docker-compose up -d --no-deps --build caddy`
|
||||
1. Upgrade gitea by changing the version in the `docker-compose.yml` and running `docker-compose pull && docker-compose up -d --no-deps gitea`
|
||||
Upgrade gitea by changing the version in the `docker-compose.yml` and running `docker-compose pull && docker-compose up -d`
|
||||
|
||||
## Data safety
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ networks:
|
|||
external: false
|
||||
|
||||
volumes:
|
||||
caddy-data:
|
||||
gitea-data:
|
||||
|
||||
services:
|
||||
|
@ -18,15 +17,4 @@ services:
|
|||
- gitea-data:/data
|
||||
ports:
|
||||
- "2222:22"
|
||||
|
||||
caddy:
|
||||
build:
|
||||
context: .
|
||||
restart: always
|
||||
networks:
|
||||
- backend
|
||||
volumes:
|
||||
- caddy-data:/root/.caddy
|
||||
ports:
|
||||
- "443:443"
|
||||
- "80:80"
|
||||
- "127.0.0.1:3000:3000"
|
||||
|
|
Loading…
Reference in New Issue