This commit is contained in:
Colin 2024-04-20 23:55:28 -04:00
parent d34ea96480
commit dcb783254b
10 changed files with 97 additions and 39 deletions

View File

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

View File

@ -1,6 +1,12 @@
version: "3.9"
services:
pairdrop:
loki:
build:
context: docker/pairdrop
image: git.nixc.us/nixius/pairdrop:staging
context: docker/loki
dockerfile: Dockerfile
image: git.nixc.us/nixius/loki:staging-loki
grafana:
build:
context: docker/grafana
dockerfile: Dockerfile
image: git.nixc.us/nixius/grafana:staging-grafana

View File

@ -0,0 +1 @@
FROM grafana/grafana:latest

View File

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

1
docker/loki/Dockerfile Normal file
View File

@ -0,0 +1 @@
FROM grafana/loki:latest

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
version: "3.7"
services:
pairdrop:
image: git.nixc.us/nixius/pairdrop:production
loki:
image: git.nixc.us/nixius/loki:production-loki
environment:
- PUID=1000 # UID to run the application as
- PGID=1000 # GID to run the application as
@ -17,22 +17,55 @@ services:
# - node.hostname == ingress.nixc.us
labels:
homepage.group: apps
homepage.name: pairdrop
homepage.href: https://pairdrop.nixc.us/
homepage.name: loki
homepage.href: https://loki.nixc.us/
homepage.description:
us.nixc.autodeploy: "true"
traefik.enable: "true"
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.http.routers.production_loki_loki.tls: "true"
traefik.http.services.production_loki_loki.loadbalancer.server.port: 3100
traefik.http.routers.production_loki_loki.rule: Host(`loki.nixc.us`)
traefik.http.routers.production_loki_loki.entrypoints: websecure
traefik.http.routers.production_loki_loki.tls.certresolver: letsencryptresolver
traefik.http.routers.production_loki_loki.service: production_loki_loki
traefik.docker.network: traefik
# - 'traefik.http.routers.production_uptime_uptime.middlewares=authelia@docker'
networks:
- traefik
grafana:
image: git.nixc.us/nixius/loki:production-grafana
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
labels:
homepage.group: apps
homepage.name: grafana
homepage.href: https://grafana.nixc.us/
homepage.description:
us.nixc.autodeploy: "true"
traefik.enable: "true"
traefik.http.routers.production_grafana_grafana.tls: "true"
traefik.http.services.production_grafana_grafana.loadbalancer.server.port: 3000
traefik.http.routers.production_grafana_grafana.rule: Host(`grafana.nixc.us`)
traefik.http.routers.production_grafana_grafana.entrypoints: websecure
traefik.http.routers.production_grafana_grafana.tls.certresolver: letsencryptresolver
traefik.http.routers.production_grafana_grafana.service: production_grafana_grafana
traefik.docker.network: traefik
# - 'traefik.http.routers.production_uptime_uptime.middlewares=authelia@docker'
networks:
- traefik
networks:
traefik:
external: true

View File

@ -1,33 +1,45 @@
version: "3.7"
services:
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
loki:
image: git.nixc.us/nixius/loki:staging-loki
deploy:
replicas: 1
# placement:
# constraints:
# - node.hostname == ingress.nixc.us
labels:
homepage.group: apps
homepage.name: pairdrop
homepage.href: https://staging.pairdrop.nixc.us/
homepage.name: loki
homepage.href: https://loki.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.http.routers.staging_loki_loki.tls: "true"
traefik.http.services.staging_loki_loki.loadbalancer.server.port: 3100
traefik.http.routers.staging_loki_loki.rule: Host(`loki.nixc.us`)
traefik.http.routers.staging_loki_loki.entrypoints: websecure
traefik.http.routers.staging_loki_loki.tls.certresolver: letsencryptresolver
traefik.http.routers.staging_loki_loki.service: staging_loki_loki
traefik.docker.network: traefik
# - 'traefik.http.routers.staging_uptime_uptime.middlewares=authelia@docker'
networks:
- traefik
grafana:
image: git.nixc.us/nixius/loki:staging-grafana
deploy:
replicas: 1
labels:
homepage.group: apps
homepage.name: grafana
homepage.href: https://grafana.nixc.us/
homepage.description:
us.nixc.autodeploy: "true"
traefik.enable: "true"
traefik.http.routers.staging_grafana_grafana.tls: "true"
traefik.http.services.staging_grafana_grafana.loadbalancer.server.port: 3000
traefik.http.routers.staging_grafana_grafana.rule: Host(`grafana.nixc.us`)
traefik.http.routers.staging_grafana_grafana.entrypoints: websecure
traefik.http.routers.staging_grafana_grafana.tls.certresolver: letsencryptresolver
traefik.http.routers.staging_grafana_grafana.service: staging_grafana_grafana
traefik.docker.network: traefik
# - 'traefik.http.routers.staging_uptime_uptime.middlewares=authelia@docker'
networks: