chore: removes docker-compose deadcode (#29)
This commit is contained in:
parent
57a2b02c74
commit
d22dee6748
13 changed files with 0 additions and 162 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
|
@ -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
|
|
@ -1 +0,0 @@
|
|||
CONFIG_ROOT=${APP_STORAGE_ROOT:-.}/bitwarden
|
|
@ -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
|
|
@ -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:-./}
|
1
services/deluge/.gitignore
vendored
1
services/deluge/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
deluge
|
|
@ -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.
|
|
@ -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
|
|
@ -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
|
3
services/plex/.gitignore
vendored
3
services/plex/.gitignore
vendored
|
@ -1,3 +0,0 @@
|
|||
media/**/*
|
||||
transcode/**/*
|
||||
database/**/*
|
|
@ -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.
|
|
@ -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
|
Reference in a new issue