Refactor makefile to deploy secondary stack in swarm
This commit is contained in:
@@ -49,6 +49,14 @@ deploy-apps: pull
|
|||||||
set +a ;\
|
set +a ;\
|
||||||
docker stack deploy --compose-file ./swarm/apps.yml apps ;\
|
docker stack deploy --compose-file ./swarm/apps.yml apps ;\
|
||||||
}
|
}
|
||||||
|
deploy-secondary: pull
|
||||||
|
{ \
|
||||||
|
echo "Deploying the secondary stack..." ;\
|
||||||
|
set -a ;\
|
||||||
|
. ./swarm/.env ;\
|
||||||
|
set +a ;\
|
||||||
|
docker stack deploy --compose-file ./swarm/secondary.yml secondary ;\
|
||||||
|
}
|
||||||
|
|
||||||
deploy-ghost: pull
|
deploy-ghost: pull
|
||||||
{ \
|
{ \
|
||||||
|
|||||||
+2
-2
@@ -34,12 +34,12 @@ services:
|
|||||||
- DOMAIN=${DOMAIN}
|
- DOMAIN=${DOMAIN}
|
||||||
volumes:
|
volumes:
|
||||||
- type: bind
|
- type: bind
|
||||||
source: ~/config/.env
|
source: /var/data/config/.env
|
||||||
target: /app/.env
|
target: /app/.env
|
||||||
- libre-images:/app/client/public/images
|
- libre-images:/app/client/public/images
|
||||||
- libre-logs:/app/api/logs
|
- libre-logs:/app/api/logs
|
||||||
- type: bind
|
- type: bind
|
||||||
source: ~/config/librechat.yaml
|
source: /var/data/config/librechat.yaml
|
||||||
target: /app/librechat.yaml
|
target: /app/librechat.yaml
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
services:
|
||||||
|
librespeed:
|
||||||
|
image: lscr.io/linuxserver/librespeed:latest
|
||||||
|
container_name: librespeed
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
- TZ=${TZ}
|
||||||
|
- PASSWORD=${DATABASE__PASSWORD}
|
||||||
|
volumes:
|
||||||
|
- /var/data/config/librespeed:/config
|
||||||
|
# ports:
|
||||||
|
# - 80:80
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- traefik-public
|
||||||
|
deploy:
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- traefik.docker.network=traefik-public
|
||||||
|
- traefik.constraint-label=traefik-public
|
||||||
|
- traefik.http.routers.librespeed.entrypoints=https
|
||||||
|
- traefik.http.routers.librespeed.rule=Host(`speed.${DOMAIN}`) || Host(`speedtest.${DOMAIN}`)
|
||||||
|
- traefik.http.routers.librespeed.tls.certresolver=le
|
||||||
|
- traefik.http.routers.librespeed.service=librespeed_app
|
||||||
|
- traefik.http.services.librespeed_app.loadbalancer.server.port=80
|
||||||
Reference in New Issue
Block a user