Browse Source

Remove caddy docker, I'm running elsewhere

Signed-off-by: Amy Aronsohn <WagThatTail@Me.com>
main
Amelia A 2 years ago
parent
commit
f309338a69
Signed by: amy GPG Key ID: 70C320ABA95D38C1
5 changed files with 3 additions and 48 deletions
  1. +0
    -3
      .dockerignore
  2. +0
    -6
      Caddyfile
  3. +0
    -21
      Dockerfile
  4. +2
    -5
      README.md
  5. +1
    -13
      docker-compose.yml

+ 0
- 3
.dockerignore View File

@ -1,3 +0,0 @@
.git
backup*
update

+ 0
- 6
Caddyfile View File

@ -1,6 +0,0 @@
onlyhavecans.works {
proxy / http://gitea:3000
log stdout
errors stdout
}

+ 0
- 21
Dockerfile View File

@ -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"]

+ 2
- 5
README.md View File

@ -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


+ 1
- 13
docker-compose.yml View File

@ -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…
Cancel
Save