diff --git a/docker-compose.production.yml b/docker-compose.production.yml index ba398a7..2095583 100644 --- a/docker-compose.production.yml +++ b/docker-compose.production.yml @@ -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 diff --git a/docker-compose.staging.yml b/docker-compose.staging.yml index 5a9749d..91ea557 100644 --- a/docker-compose.staging.yml +++ b/docker-compose.staging.yml @@ -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 diff --git a/docker/pairdrop/Dockerfile b/docker/pairdrop/Dockerfile new file mode 100644 index 0000000..d5f6d90 --- /dev/null +++ b/docker/pairdrop/Dockerfile @@ -0,0 +1 @@ +FROM lscr.io/linuxserver/pairdrop:latest \ No newline at end of file diff --git a/docker/pairdrop/Dockerfile.production b/docker/pairdrop/Dockerfile.production new file mode 100644 index 0000000..fad9e3f --- /dev/null +++ b/docker/pairdrop/Dockerfile.production @@ -0,0 +1 @@ +FROM git.nixc.us/nixius/pairdrop:staging \ No newline at end of file diff --git a/docker/uptime/Dockerfile b/docker/uptime/Dockerfile deleted file mode 100644 index b5eb091..0000000 --- a/docker/uptime/Dockerfile +++ /dev/null @@ -1 +0,0 @@ -FROM louislam/uptime-kuma:latest \ No newline at end of file diff --git a/docker/uptime/Dockerfile.production b/docker/uptime/Dockerfile.production deleted file mode 100644 index 8fa0664..0000000 --- a/docker/uptime/Dockerfile.production +++ /dev/null @@ -1 +0,0 @@ -FROM git.nixc.us/nixius/uptime:staging \ No newline at end of file diff --git a/stack.production.yml b/stack.production.yml index 1c9a1a0..abdaed8 100644 --- a/stack.production.yml +++ b/stack.production.yml @@ -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 \ No newline at end of file diff --git a/stack.staging.yml b/stack.staging.yml index 6d93684..ea7afcf 100644 --- a/stack.staging.yml +++ b/stack.staging.yml @@ -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 \ No newline at end of file