Compare commits
No commits in common. "d6ab7a54ff76c7c7b8d03a026af4c6c5b85104e9" and "f0e669eed401213a5b83fbe5397b1c8932b3813c" have entirely different histories.
d6ab7a54ff
...
f0e669eed4
|
@ -1,7 +1,6 @@
|
||||||
FROM caddy:2.7.4-builder AS builder
|
FROM caddy:2.7.4-builder AS builder
|
||||||
|
|
||||||
RUN xcaddy build \
|
RUN xcaddy build \
|
||||||
--with github.com/caddy-dns/porkbun \
|
|
||||||
--with github.com/caddyserver/replace-response
|
--with github.com/caddyserver/replace-response
|
||||||
|
|
||||||
FROM caddy:2.7.4
|
FROM caddy:2.7.4
|
||||||
|
|
|
@ -12,7 +12,6 @@ up () {
|
||||||
--detach \
|
--detach \
|
||||||
--name caddy \
|
--name caddy \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
--label com.centurylinklabs.watchtower.enable=false \
|
|
||||||
--privileged \
|
--privileged \
|
||||||
--volume /mammoth/files:/www/seaturtle.pw_files:ro \
|
--volume /mammoth/files:/www/seaturtle.pw_files:ro \
|
||||||
--volume /mammoth/gis/bigcavemaps.com:/www/bigcavemaps.com:ro \
|
--volume /mammoth/gis/bigcavemaps.com:/www/bigcavemaps.com:ro \
|
||||||
|
|
|
@ -1,46 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
up () {
|
|
||||||
# Exposed on port 80 in pew-net
|
|
||||||
docker run \
|
|
||||||
--detach \
|
|
||||||
--name photoview \
|
|
||||||
--restart unless-stopped \
|
|
||||||
--env PHOTOVIEW_DATABASE_DRIVER=mysql \
|
|
||||||
--env PHOTOVIEW_MYSQL_URL=photoview:photoview@tcp\(pv-mariadb\)/photoview \
|
|
||||||
--env PHOTOVIEW_LISTEN_IP=photoview \
|
|
||||||
--env PHOTOVIEW_LISTEN_PORT=80 \
|
|
||||||
--env PHOTOVIEW_MEDIA_CACHE=/app/cache \
|
|
||||||
--volume /mammoth/photoview/cache:/cache:rw \
|
|
||||||
--volume /mammoth/photos:/photos:ro \
|
|
||||||
--network pew-net \
|
|
||||||
viktorstrate/photoview:2
|
|
||||||
|
|
||||||
docker run \
|
|
||||||
--detach \
|
|
||||||
--name pv-mariadb \
|
|
||||||
--restart unless-stopped \
|
|
||||||
--env MYSQL_DATABASE=photoview \
|
|
||||||
--env MYSQL_USER=photoview \
|
|
||||||
--env MYSQL_PASSWORD=photoview \
|
|
||||||
--env MYSQL_RANDOM_ROOT_PASSWORD=1 \
|
|
||||||
--volume /mammoth/photoview/mysql:/var/lib/mysql:rw \
|
|
||||||
--network pew-net \
|
|
||||||
mariadb:10.5
|
|
||||||
}
|
|
||||||
|
|
||||||
down () {
|
|
||||||
docker stop photoview || true
|
|
||||||
docker stop pv-mariadb || true
|
|
||||||
docker rm photoview || true
|
|
||||||
docker rm pv-mariadb || true
|
|
||||||
}
|
|
||||||
|
|
||||||
logs () {
|
|
||||||
docker logs --follow photoview
|
|
||||||
docker logs --follow pv-mariadb
|
|
||||||
}
|
|
||||||
|
|
||||||
$@
|
|
|
@ -15,7 +15,6 @@ up () {
|
||||||
--env NVIDIA_VISIBLE_DEVICES=all \
|
--env NVIDIA_VISIBLE_DEVICES=all \
|
||||||
--env VERSION=docker \
|
--env VERSION=docker \
|
||||||
--volume /mammoth/plex/config:/config:rw \
|
--volume /mammoth/plex/config:/config:rw \
|
||||||
--volume /mammoth/media/homemedia:/media/homemedia:ro \
|
|
||||||
--volume /mammoth/media/audiobooks:/media/audiobooks:ro \
|
--volume /mammoth/media/audiobooks:/media/audiobooks:ro \
|
||||||
--volume /mammoth/media/movies:/media/movies:ro \
|
--volume /mammoth/media/movies:/media/movies:ro \
|
||||||
--volume /mammoth/media/music:/media/music:ro \
|
--volume /mammoth/media/music:/media/music:ro \
|
||||||
|
|
Loading…
Reference in New Issue