[add] code-server

This commit is contained in:
Andy Bunce 2021-11-10 21:46:03 +00:00
parent 2d615f191a
commit 5fd946c04d
11 changed files with 144 additions and 43 deletions

26
code-server/Dockerfile Normal file
View File

@ -0,0 +1,26 @@
#
# add openjdk 11 and basex on code-server docker image
# @author Andy Bunce
FROM alpine:latest AS builder
RUN apk --no-cache add zip
ADD https://files.basex.org/releases/9.5/BaseX95.zip /srv
RUN cd /srv && unzip *.zip && rm *.zip
# custom options
COPY .basex /srv/basex/
# Main image
FROM ghcr.io/linuxserver/code-server:version-v3.9.1
LABEL author="Andy Bunce"
LABEL company="Quodatum Ltd"
LABEL maintainer="andy@quodatum.com"
ENV JAVA_HOME="/usr/lib/jvm/default-jvm/"
RUN apk add --no-cache bash openjdk11-jre-headless
# Has to be set explictly to find binaries
ENV PATH=$PATH:${JAVA_HOME}/bin
RUN adduser -h /srv -D -u 1000 basex
COPY --from=builder --chown=basex:basex /srv/ /srv

3
code-server/README.md Normal file
View File

@ -0,0 +1,3 @@
# code-server
Installs `code-server:version-v3.9.1` with JRE and BaseX.

8
code-server/config/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
# .gitignore sample
###################
# Ignore all files in this dir...
*
# ... except for this one.
!.gitignore

4
gerbera/README.md Normal file
View File

@ -0,0 +1,4 @@
# gerbera
https://hub.docker.com/r/gerbera/gerbera
@TODO

8
gerbera/config/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
# .gitignore sample
###################
# Ignore all files in this dir...
*
# ... except for this one.
!.gitignore

View File

@ -0,0 +1,16 @@
version: '2.0'
services:
gerbera:
image: gerbera/gerbera:1.9.2
container_name: gerbera
restart: always
volumes:
- "/mnt/media/pictures:/media/pictures:ro"
- "./videos:/media/videos:ro"
- "/mnt/drive/backups/velvet/media/Music:/media/music:ro"
- "./config:/var/run/gerbera"
# Port 49494/tcp (HTTP) and 1900/udp (SSDP Multicast) are exposed by default.
network_mode: "host"
restart: unless-stopped

3
gitea/README.md Normal file
View File

@ -0,0 +1,3 @@
# Gitea
@TODO

View File

@ -1,4 +1,36 @@
# piwigo setup
# piwigo notes
##Setup
1. Ensure empty folders `config` and `gallery`.
1. run `docker-compose up`
1. Activate plugins:
- Presync AutoRename
- LocalFiles Editor
- SmartAlbums
1. Edit local config
```
meta
```
1. Create folder pisacca in `/home/odroid/thedocks/piwigo/gallery/galleries`
1. `mount --bind /mnt/media/pictures/ /home/odroid/thedocks/piwigo/gallery/galleries/picassa`
1. run `Presync AutoRename`
1. Sync
## Based on
https://github.com/jkirk/docker-piwigo/blob/main/docker-compose.yml
```
#bind
mount --bind /mnt/media/pictures/ /home/odroid/thedocks/piwigo/gallery/galleries/picassa
# undo
umount /home/odroid/thedocks/piwigo/gallery/galleries/picassa
```
# fstab
```
/mnt/drive/backups/velvet/PicasaStarter/pictures/Pictures/ /mnt/drive/docker/projects/piwigo/piwigo/pics none bind
umount```
https://github.com/jkirk/docker-piwigo/blob/main/docker-compose.yml

View File

@ -1,28 +1,28 @@
---
version: "2.1"
services:
piwigo-db:
env_file:
- piwigo-db.env
image: mariadb:10.5
container_name: piwigo-db
volumes:
- piwigo-db:/var/lib/mysql
restart: unless-stopped
piwigo:
image: ghcr.io/linuxserver/piwigo
container_name: piwigo
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- ./config:/config
- ./gallery:/gallery
ports:
- 8002:80
restart: unless-stopped
volumes:
---
version: "2.1"
services:
piwigo-db:
env_file:
- piwigo-db.env
image: mariadb:10.5
container_name: piwigo-db
volumes:
- piwigo-db:/var/lib/mysql
restart: unless-stopped
piwigo:
image: ghcr.io/linuxserver/piwigo
container_name: piwigo
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- ./config:/config
- ./gallery:/gallery
ports:
- 8002:80
restart: unless-stopped
volumes:
piwigo-db:

View File

@ -1,13 +1,13 @@
version: '3'
services:
tiddly:
image: tiddlywiki:5.2.0
build: .
container_name: tiddlywiki-docker
restart: unless-stopped
volumes:
- ./data/quodatum:/app
ports:
- 8088:8080
env_file: ./.env
version: '3'
services:
tiddly:
image: tiddlywiki:5.2.0
build: .
container_name: tiddlywiki-docker
restart: unless-stopped
volumes:
- ./data/quodatum:/app
ports:
- 8088:8080
env_file: ./.env

View File

@ -10,7 +10,8 @@ services:
- TZ=Europe/London
volumes:
- ./config:/config
- ./recordings:/recordings
- /mnt/media/recordings:/recordings
# - ./recordings:/recordings
ports:
- 9981:9981
- 9982:9982