Converted Remmina's repo for a Send fork

This commit is contained in:
Colin 2024-03-18 16:41:34 -04:00
parent 856f2e4e4a
commit 60070001ae
8 changed files with 62 additions and 32 deletions

View File

@ -1,7 +1,7 @@
version: "3.9" version: "3.9"
services: services:
remmina: send:
build: build:
context: docker/remmina context: docker/send
dockerfile: Dockerfile.production dockerfile: Dockerfile.production
image: git.nixc.us/nixius/remmina:production image: git.nixc.us/nixius/send:production

View File

@ -1,6 +1,6 @@
version: "3.9" version: "3.9"
services: services:
remmina: send:
build: build:
context: docker/remmina context: docker/send
image: git.nixc.us/nixius/remmina:staging image: git.nixc.us/nixius/send:staging

1
docker/redis/.gitkeep Normal file
View File

@ -0,0 +1 @@
# TODO: Deploy a static version of redis maybe for what its worth.

View File

@ -1 +0,0 @@
FROM lscr.io/linuxserver/remmina:latest

1
docker/send/Dockerfile Normal file
View File

@ -0,0 +1 @@
FROM registry.gitlab.com/timvisee/send:latest

View File

@ -5,7 +5,7 @@ networks:
default: default:
services: services:
web: web:
image: registry.gitlab.com/timvisee/send:latest image: git.nixc.us/nixius/send:staging-web
depends_on: depends_on:
- redis - redis
environment: environment:
@ -20,17 +20,20 @@ services:
DEFAULT_DOWNLOADS: "1" DEFAULT_DOWNLOADS: "1"
DEFAULT_EXPIRE_SECONDS: "86400" DEFAULT_EXPIRE_SECONDS: "86400"
volumes: volumes:
- /mnt/tank/persist/aenow.com/send/staging/uploads:/uploads - /mnt/tank/persist/nixc.us/send/staging/uploads:/uploads
networks: networks:
- default - default
- traefik - traefik
deploy: deploy:
replicas: 1 replicas: 1
placement:
constraints:
- node.hostname == macmini8
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.production_send_web.tls=true" - "traefik.http.routers.production_send_web.tls=true"
- "traefik.http.services.production_send_web.loadbalancer.server.port=1443" - "traefik.http.services.production_send_web.loadbalancer.server.port=1443"
- "traefik.http.routers.production_send_web.rule=Host(`send.aenow.com`)" - "traefik.http.routers.production_send_web.rule=Host(`send.nixc.us`)"
- "traefik.http.routers.production_send_web.entrypoints=websecure" - "traefik.http.routers.production_send_web.entrypoints=websecure"
- "traefik.http.routers.production_send_web.tls.certresolver=letsencryptresolver" - "traefik.http.routers.production_send_web.tls.certresolver=letsencryptresolver"
- "traefik.http.routers.production_send_web.service=production_send_web" - "traefik.http.routers.production_send_web.service=production_send_web"
@ -46,6 +49,9 @@ services:
image: redis image: redis
deploy: deploy:
replicas: 1 replicas: 1
placement:
constraints:
- node.hostname == macmini8
labels: labels:
- traefik.enable=false - traefik.enable=false
volumes: volumes:

View File

@ -1,32 +1,55 @@
version: '3.7' version: "3.7"
networks: networks:
traefik: traefik:
external: true external: true
default:
services: services:
remmina: web:
image: git.nixc.us/nixius/remmina:staging image: git.nixc.us/nixius/send:staging-web
depends_on:
- redis
environment: environment:
- PUID=1000 REDIS_HOST: send_redis
- PGID=1000 FILE_DIR: /uploads
# - REMMINA_PASSWORD=your_password DETECT_BASE_URL: "true"
- REMMINA_PORT=5900 MAX_FILE_SIZE: 4294967296 # 2147483648 #4,294,967,296
MAX_FILES_PER_ARCHIVE: 64
MAX_DOWNLOADS: 20
DOWNLOAD_COUNTS: "2,1,2,5,10,15,25,50,100,1000"
EXPIRE_TIMES_SECONDS: "3600,86400,604800,2592000,31536000"
DEFAULT_DOWNLOADS: "1"
DEFAULT_EXPIRE_SECONDS: "86400"
# volumes:
# - /mnt/tank/persist/aenow.com/send/staging/uploads:/uploads
networks: networks:
- default
- traefik - traefik
deploy: deploy:
replicas: 1 replicas: 1
placement:
constraints:
- node.hostname == ingress.nixc.us
labels: labels:
traefik.docker.network: traefik - "traefik.enable=true"
traefik.enable: "true" - "traefik.http.routers.staging_send_web.tls=true"
traefik.http.routers.staging_remmina.entrypoints: websecure - "traefik.http.services.staging_send_web.loadbalancer.server.port=1443"
traefik.http.routers.staging_remmina.rule: Host(`staging.remmina.nixc.us`) - "traefik.http.routers.staging_send_web.rule=Host(`staging.send.aenow.com`)"
traefik.http.routers.staging_remmina.service: staging_remmina - "traefik.http.routers.staging_send_web.entrypoints=websecure"
traefik.http.routers.staging_remmina.tls: "true" - "traefik.http.routers.staging_send_web.tls.certresolver=letsencryptresolver"
traefik.http.routers.staging_remmina.tls.certresolver: letsencryptresolver - "traefik.http.routers.staging_send_web.service=staging_send_web"
traefik.http.services.staging_remmina.loadbalancer.server.port: '5900' - "traefik.docker.network=traefik"
traefik.tags: traefik networks:
traefik.http.routers.staging_remmina.middlewares: authelia_authelia@docker - traefik
- default
redis:
image: redis:alpine
networks:
- default
redis:
image: redis
deploy:
replicas: 1
labels:
- traefik.enable=false
# volumes:
# - /mnt/tank/persist/nixc.us/send/staging/db:/data
networks:
- default
entrypoint: redis-server