Update stack.production.yml
This commit is contained in:
parent
8d4545448d
commit
4315b0f749
|
@ -0,0 +1,58 @@
|
|||
version: '3.7'
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
||||
default:
|
||||
driver: overlay
|
||||
|
||||
services:
|
||||
redis:
|
||||
# image: docker.io/library/redis:alpine
|
||||
image: git.nixc.us/colin/searxng:staging-redis
|
||||
networks:
|
||||
- default
|
||||
- traefik
|
||||
volumes:
|
||||
- /mnt/tank/persist/nixc.us/searxng/redis:/data
|
||||
deploy:
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == ingress.nixc.us
|
||||
# logging:
|
||||
# driver: "gelf"
|
||||
# options:
|
||||
# gelf-address: "udp://log.nixc.us:15124"
|
||||
# tag: "redis"
|
||||
|
||||
searxng:
|
||||
# image: searxng/searxng:latest
|
||||
image: git.nixc.us/colin/searxng:staging-searxng
|
||||
networks:
|
||||
- default
|
||||
- traefik
|
||||
volumes:
|
||||
- /mnt/tank/persist/nixc.us/searxng/config:/etc/searxng:rw
|
||||
environment:
|
||||
- SEARXNG_BASE_URL=https://searx.nixc.us
|
||||
deploy:
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == ingress.nixc.us
|
||||
labels:
|
||||
traefik.docker.network: traefik
|
||||
traefik.enable: "true"
|
||||
traefik.http.routers.production _searxng.entrypoints: websecure
|
||||
traefik.http.routers.production _searxng.rule: Host(`searx.nixc.us`)
|
||||
traefik.http.routers.production _searxng.tls: "true"
|
||||
traefik.http.routers.production _searxng.tls.certresolver: letsencryptresolver
|
||||
traefik.http.services.production _searxng.loadbalancer.server.port: '8080'
|
||||
traefik.http.routers.production _searxng.service: production _searxng
|
||||
traefik.tags: traefik
|
||||
# logging:
|
||||
# driver: "gelf"
|
||||
# options:
|
||||
# gelf-address: "udp://log.nixc.us:15124"
|
||||
# tag: "searxng"
|
56
stack.yml
56
stack.yml
|
@ -1,56 +0,0 @@
|
|||
version: '3.7'
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
||||
default:
|
||||
driver: overlay
|
||||
|
||||
services:
|
||||
redis:
|
||||
image: docker.io/library/redis:alpine
|
||||
networks:
|
||||
- default
|
||||
- traefik
|
||||
volumes:
|
||||
- /mnt/tank/persist/nixc.us/searxng/redis:/data
|
||||
deploy:
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == ingress.nixc.us
|
||||
logging:
|
||||
driver: "gelf"
|
||||
options:
|
||||
gelf-address: "udp://log.nixc.us:15124"
|
||||
tag: "redis"
|
||||
|
||||
searxng:
|
||||
image: searxng/searxng:latest
|
||||
networks:
|
||||
- default
|
||||
- traefik
|
||||
volumes:
|
||||
- /mnt/tank/persist/nixc.us/searxng/config:/etc/searxng:rw
|
||||
environment:
|
||||
- SEARXNG_BASE_URL=https://searx.nixc.us
|
||||
deploy:
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == ingress.nixc.us
|
||||
labels:
|
||||
traefik.docker.network: traefik
|
||||
traefik.enable: "true"
|
||||
traefik.http.routers.searxng_searxng.entrypoints: websecure
|
||||
traefik.http.routers.searxng_searxng.rule: Host(`searx.nixc.us`)
|
||||
traefik.http.routers.searxng_searxng.tls: "true"
|
||||
traefik.http.routers.searxng_searxng.tls.certresolver: letsencryptresolver
|
||||
traefik.http.services.searxng_searxng.loadbalancer.server.port: '8080'
|
||||
traefik.http.routers.searxng_searxng.service: searxng_searxng
|
||||
traefik.tags: traefik
|
||||
logging:
|
||||
driver: "gelf"
|
||||
options:
|
||||
gelf-address: "udp://log.nixc.us:15124"
|
||||
tag: "searxng"
|
Loading…
Reference in New Issue