Add stack.staging.yml
This commit is contained in:
		
							parent
							
								
									4315b0f749
								
							
						
					
					
						commit
						882c638909
					
				| 
						 | 
				
			
			@ -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://staging.searx.nixc.us
 | 
			
		||||
    deploy:
 | 
			
		||||
      replicas: 1
 | 
			
		||||
      placement:
 | 
			
		||||
        constraints:
 | 
			
		||||
          - node.hostname == ingress.nixc.us
 | 
			
		||||
      labels:
 | 
			
		||||
        traefik.docker.network: traefik
 | 
			
		||||
        traefik.enable: "true"
 | 
			
		||||
        traefik.http.routers.staging_searxng.entrypoints: websecure
 | 
			
		||||
        traefik.http.routers.staging_searxng.rule: Host(`staging.searx.nixc.us`)
 | 
			
		||||
        traefik.http.routers.staging_searxng.tls: "true"
 | 
			
		||||
        traefik.http.routers.staging_searxng.tls.certresolver: letsencryptresolver
 | 
			
		||||
        traefik.http.services.staging_searxng.loadbalancer.server.port: '8080'
 | 
			
		||||
        traefik.http.routers.staging_searxng.service: staging_searxng
 | 
			
		||||
        traefik.tags: traefik
 | 
			
		||||
    # logging:
 | 
			
		||||
    #   driver: "gelf"
 | 
			
		||||
    #   options:
 | 
			
		||||
    #     gelf-address: "udp://log.nixc.us:15124"
 | 
			
		||||
    #     tag: "searxng"
 | 
			
		||||
		Loading…
	
		Reference in New Issue