diff --git a/README.md b/README.md index 72a83c4..f0eca3f 100644 --- a/README.md +++ b/README.md @@ -5,15 +5,6 @@ Spadinaistan is my personal cloud, which runs on an old laptop in my office. This code isn't intended to be used by anyone else. -## Services - -|Service|Description| -|---|---| -|[Plex](./services/plex)|Plex media server| -|[Deluge](./services/deluge)|Deluge Web service| -|[Bitwarden](./services/bitwarden)|Bitwarden secrets management| -|[Bastion](./services/bastion)|Tunnel service exposing the services to the internet through Cloudflare.| - ## Getting started Use `. script/bootstrap` to set up the Python environment needed for the invoke and pyinfra tooling to work. diff --git a/services/bastion/README.md b/services/bastion/README.md deleted file mode 100644 index 215b603..0000000 --- a/services/bastion/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Bastion - -This service is the tunnel through which all traffic flows. It communicates with Cloudflare so that no ports on the -machine need to be exposed. - -## Installation - -A `secrets.env` file containing the token provided by Cloudflare (`TUNNEL_TOKEN`) must be provided. - -### Making services visible - -Services should be on the same network (`internal`) as the bastion for Cloudflare to route traffic to them -properly. diff --git a/services/bastion/docker-compose.yml b/services/bastion/docker-compose.yml deleted file mode 100644 index 91165aa..0000000 --- a/services/bastion/docker-compose.yml +++ /dev/null @@ -1,16 +0,0 @@ -version: '3.7' - -services: - tunnel: - # Last updated: 4/7/2023 - image: cloudflare/cloudflared:1414-cb4bd8d06572 - command: tunnel run - restart: always - env_file: - # The secrets.env file is expected to contain - # the TUNNEL_TOKEN value from Cloudflare. - - secrets.env - -networks: - default: - name: internal diff --git a/services/bitwarden/.env b/services/bitwarden/.env deleted file mode 100644 index b5832cb..0000000 --- a/services/bitwarden/.env +++ /dev/null @@ -1 +0,0 @@ -CONFIG_ROOT=${APP_STORAGE_ROOT:-.}/bitwarden diff --git a/services/bitwarden/docker-compose.yml b/services/bitwarden/docker-compose.yml deleted file mode 100644 index 8ea75a5..0000000 --- a/services/bitwarden/docker-compose.yml +++ /dev/null @@ -1,29 +0,0 @@ -version: '3.7' - -services: - bitwarden: - image: bitwarden/self-host:beta - env_file: - - ${CONFIG_ROOT}/web.env - depends_on: - - db - restart: always - ports: - - 7000:8080 - - 7001:8443 - volumes: - - ${CONFIG_ROOT}/config:/etc/bitwarden - - ${CONFIG_ROOT}/logs:/var/log/bitwarden - db: - image: mariadb:10 - env_file: - - ${CONFIG_ROOT}/db.env - restart: always - volumes: - - ${CONFIG_ROOT}/db:/var/lib/mysql - ports: - - 3306:3306 -networks: - default: - name: internal - external: true diff --git a/services/deluge/.env b/services/deluge/.env deleted file mode 100644 index a57643d..0000000 --- a/services/deluge/.env +++ /dev/null @@ -1,7 +0,0 @@ -# Download target -DOWNLOADS_ROOT=${APP_STORAGE_ROOT:-.}/deluge/downloads - -# Configuration data -CONFIG_ROOT=${APP_STORAGE_ROOT:-.}/deluge/config - -COMPLETED_DOWNLOADS_ROOT=${DATA_STORAGE_ROOT:-./} diff --git a/services/deluge/.gitignore b/services/deluge/.gitignore deleted file mode 100644 index ad5fdbf..0000000 --- a/services/deluge/.gitignore +++ /dev/null @@ -1 +0,0 @@ -deluge diff --git a/services/deluge/README.md b/services/deluge/README.md deleted file mode 100644 index 757a8fc..0000000 --- a/services/deluge/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# Deluge - -[Deluge](https://deluge-torrent.org/) is a torrent web server. - -## Setup - -Make sure to have `APP_STORAGE_ROOT` and `DATA_STORAGE_ROOT` set up as environment variables on the host machine when -starting the service; this will determine where downloaded content and configuration goes. - -## Usage - -### Starting/stopping - -`inv services.start deluge` and `inv services.stop deluge` can be used to start and stop the service. - -The data volume can be accessed as `/complete` and can be used to automove content from the Deluge app data to its final -repository when a download completes. diff --git a/services/deluge/docker-compose.yml b/services/deluge/docker-compose.yml deleted file mode 100644 index 4181ffc..0000000 --- a/services/deluge/docker-compose.yml +++ /dev/null @@ -1,21 +0,0 @@ -version: "3.7" -services: - deluge: - image: lscr.io/linuxserver/deluge:latest - container_name: deluge - environment: - - TZ=America/Toronto - volumes: - - ${CONFIG_ROOT}:/config - - ${DOWNLOADS_ROOT}:/downloads - - ${COMPLETED_DOWNLOADS_ROOT}:/complete - ports: - - 8112:8112 - - 6881:6881 - - 6881:6881/udp - restart: unless-stopped - -networks: - default: - name: internal - external: true diff --git a/services/plex/.env b/services/plex/.env deleted file mode 100644 index ecd2a3d..0000000 --- a/services/plex/.env +++ /dev/null @@ -1,10 +0,0 @@ -# Media data -DATA_DIR=${DATA_STORAGE_ROOT:-.}/media - -# Application data -DATABASE_DIR=${APP_STORAGE_ROOT:-.}/plex/database -TRANSCODE_DIR=${APP_STORAGE_ROOT:-.}/plex/transcode - -# Configuration -ADVERTISE_IP="http://192.168.1.69:32400" -PLEX_CLAIM=$PLEX_CLAIM diff --git a/services/plex/.gitignore b/services/plex/.gitignore deleted file mode 100644 index d0e35af..0000000 --- a/services/plex/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -media/**/* -transcode/**/* -database/**/* diff --git a/services/plex/README.md b/services/plex/README.md deleted file mode 100644 index 465c465..0000000 --- a/services/plex/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# Plex - -[Plex](https://www.plex.tv/) is a media server. - -## Setup - -Make sure that `pass` is installed on the host and that the `plex-claim` secret is set up to the claim ID provided by -Plex. - -`DATA_STORAGE_ROOT` and `APP_STORAGE_ROOT` should be set as environment variables in the host as well. diff --git a/services/plex/docker-compose.yml b/services/plex/docker-compose.yml deleted file mode 100644 index e623867..0000000 --- a/services/plex/docker-compose.yml +++ /dev/null @@ -1,25 +0,0 @@ -version: '3.7' -services: - plex: - image: plexinc/pms-docker:1.32.0.6973-a787c5a8e - restart: always - container_name: plex-server - hostname: plexserver.spadinaistan.local - ports: - - "32400:32400/tcp" - - "32469:32469/tcp" - - "3005:3005/tcp" - - "8324:8324/tcp" - - "1900:1900/udp" - - "32410:32410/udp" - - "32412:32412/udp" - - "32413:32413/udp" - - "32414:32414/udp" - environment: - - TZ=America/Toronto - - ADVERTISE_IP=${ADVERTISE_IP} - - PLEX_CLAIM=${PLEX_CLAIM} - volumes: - - ${DATABASE_DIR}:/config - - ${TRANSCODE_DIR}:/transcode - - ${DATA_DIR}:/data