This commit is contained in:
Colin 2024-04-20 23:32:08 -04:00
parent 6204746462
commit d34ea96480
8 changed files with 59 additions and 53 deletions

View File

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

View File

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

View File

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

View File

@ -0,0 +1 @@
FROM git.nixc.us/nixius/pairdrop:staging

View File

@ -1 +0,0 @@
FROM louislam/uptime-kuma:latest

View File

@ -1 +0,0 @@
FROM git.nixc.us/nixius/uptime:staging

View File

@ -1,38 +1,38 @@
version: "3.7"
services:
uptime:
image: git.nixc.us/nixius/uptime:production
volumes:
- "/root/tank/persist/nixc.us/uptime-kuma/production/data:/app/data"
# - "/var/run/docker.sock:/var/run/docker.sock:ro"
pairdrop:
image: git.nixc.us/nixius/pairdrop:production
environment:
- PUID=1000 # UID to run the application as
- PGID=1000 # GID to run the application as
- WS_FALLBACK=false # Set to true to enable websocket fallback if the peer to peer WebRTC connection is not available to the client.
- RATE_LIMIT=false # Set to true to limit clients to 1000 requests per 5 min.
- RTC_CONFIG=false # Set to the path of a file that specifies the STUN/TURN servers.
- DEBUG_MODE=false # Set to true to debug container and peer connections.
- TZ=Etc/UTC # Time Zone
deploy:
replicas: 1
placement:
constraints:
- node.hostname == ingress.nixc.us
# placement:
# constraints:
# - node.hostname == ingress.nixc.us
labels:
homepage.group: Infrastructure
homepage.name: UptimeKuma
homepage.href: https://uptime.nixc.us/status/internal-services
homepage.group: apps
homepage.name: pairdrop
homepage.href: https://pairdrop.nixc.us/
homepage.description:
us.nixc.autodeploy: "true"
traefik.enable: "true"
traefik.http.routers.production_uptime-kuma_uptime.tls: "true"
traefik.http.services.production_uptime-kuma_uptime.loadbalancer.server.port: 3001
traefik.http.routers.production_uptime-kuma_uptime.rule: Host(`uptime.nixc.us`)
traefik.http.routers.production_uptime-kuma_uptime.entrypoints: websecure
traefik.http.routers.production_uptime-kuma_uptime.tls.certresolver: letsencryptresolver
traefik.http.routers.production_uptime-kuma_uptime.service: production_uptime-kuma_uptime
traefik.http.routers.production_pairdrop_pairdrop.tls: "true"
traefik.http.services.production_pairdrop_pairdrop.loadbalancer.server.port: 3000
traefik.http.routers.production_pairdrop_pairdrop.rule: Host(`pairdrop.nixc.us`)
traefik.http.routers.production_pairdrop_pairdrop.entrypoints: websecure
traefik.http.routers.production_pairdrop_pairdrop.tls.certresolver: letsencryptresolver
traefik.http.routers.production_pairdrop_pairdrop.service: production_pairdrop_pairdrop
traefik.docker.network: traefik
# - 'traefik.http.routers.production_uptime-kuma_uptime.middlewares=authelia@docker'
# - 'traefik.http.routers.production_uptime_uptime.middlewares=authelia@docker'
networks:
- traefik
- socketproxy
dns:
- 8.8.8.8
- 4.4.4.4
networks:
traefik:
external: true
socketproxy:
external: true

View File

@ -1,31 +1,37 @@
version: "3.7"
services:
uptime:
image: git.nixc.us/nixius/uptime:staging
pairdrop:
image: git.nixc.us/nixius/pairdrop:staging
environment:
- PUID=1000 # UID to run the application as
- PGID=1000 # GID to run the application as
- WS_FALLBACK=false # Set to true to enable websocket fallback if the peer to peer WebRTC connection is not available to the client.
- RATE_LIMIT=false # Set to true to limit clients to 1000 requests per 5 min.
- RTC_CONFIG=false # Set to the path of a file that specifies the STUN/TURN servers.
- DEBUG_MODE=false # Set to true to debug container and peer connections.
- TZ=Etc/UTC # Time Zone
deploy:
replicas: 1
placement:
constraints:
- node.hostname == ingress.nixc.us
# placement:
# constraints:
# - node.hostname == ingress.nixc.us
labels:
- "us.nixc.autodeploy=true"
- "traefik.enable=true"
- "traefik.http.routers.staging_uptime-kuma_uptime.tls=true"
- "traefik.http.services.staging_uptime-kuma_uptime.loadbalancer.server.port=3001"
- "traefik.http.routers.staging_uptime-kuma_uptime.rule=Host(`staging.uptime.nixc.us`)"
- "traefik.http.routers.staging_uptime-kuma_uptime.entrypoints=websecure"
- "traefik.http.routers.staging_uptime-kuma_uptime.tls.certresolver=letsencryptresolver"
- "traefik.http.routers.staging_uptime-kuma_uptime.service=staging_uptime-kuma_uptime"
- "traefik.docker.network=traefik"
# - 'traefik.http.routers.uptime-kuma_uptime.middlewares=authelia@docker'
homepage.group: apps
homepage.name: pairdrop
homepage.href: https://staging.pairdrop.nixc.us/
homepage.description:
us.nixc.autodeploy: "true"
traefik.enable: "true"
traefik.http.routers.staging_pairdrop_pairdrop.tls: "true"
traefik.http.services.staging_pairdrop_pairdrop.loadbalancer.server.port: 3000
traefik.http.routers.staging_pairdrop_pairdrop.rule: Host(`staging.pairdrop.nixc.us`)
traefik.http.routers.staging_pairdrop_pairdrop.entrypoints: websecure
traefik.http.routers.staging_pairdrop_pairdrop.tls.certresolver: letsencryptresolver
traefik.http.routers.staging_pairdrop_pairdrop.service: staging_pairdrop_pairdrop
traefik.docker.network: traefik
# - 'traefik.http.routers.staging_uptime_uptime.middlewares=authelia@docker'
networks:
- traefik
- socketproxy
dns:
- 8.8.8.8
- 4.4.4.4
networks:
traefik:
external: true
socketproxy:
external: true