main
parent
43bf24f5a8
commit
46e35eea82
@ -0,0 +1,46 @@
|
||||
# https://docs.searxng.org/admin/installation-docker.html#installation-docker
|
||||
|
||||
- name: Set up SearXNG
|
||||
hosts: lotus-land-story
|
||||
vars_files:
|
||||
- vars.yml
|
||||
tasks:
|
||||
|
||||
- name: Get docker network
|
||||
community.docker.docker_network:
|
||||
name: lotus_land_story
|
||||
register: docker_network
|
||||
|
||||
- name: Run SearXNG
|
||||
community.docker.docker_container:
|
||||
restart: true
|
||||
name: searxng
|
||||
image: searxng/searxng:2024.1.17-7c80807bb
|
||||
env:
|
||||
SEARXNG_BASE_URL: https://search.{{ domain }}
|
||||
# DATABASE_URL: postgres://miniflux:{{ miniflux.db_password }}@host.docker.internal/miniflux
|
||||
# RUN_MIGRATIONS: "1"
|
||||
# CREATE_ADMIN: "1"
|
||||
# ADMIN_USERNAME: alpha
|
||||
# ADMIN_PASSWORD: "{{ miniflux.password }}"
|
||||
# METRICS_COLLECTOR: "1"
|
||||
# METRICS_ALLOWED_NETWORKS: "{{ docker_network.network.IPAM.Config[0].Subnet }}"
|
||||
# OAUTH2_PROVIDER: oidc
|
||||
# OAUTH2_CLIENT_ID: miniflux
|
||||
# OAUTH2_CLIENT_SECRET: "{{ miniflux.oidc_secret }}"
|
||||
# OAUTH2_REDIRECT_URL: https://rss.{{ domain }}/oauth2/oidc/callback
|
||||
# OAUTH2_OIDC_DISCOVERY_ENDPOINT: https://auth.{{ domain }}
|
||||
# OAUTH2_USER_CREATION: "1"
|
||||
# LOG_FORMAT: json
|
||||
# LOG_LEVEL: info
|
||||
restart_policy: unless-stopped
|
||||
networks:
|
||||
- name: lotus_land_story
|
||||
etc_hosts:
|
||||
host.docker.internal: host-gateway
|
||||
|
||||
handlers:
|
||||
- name: Import restarts
|
||||
ansible.builtin.import_tasks: restarts.yml
|
||||
|
||||
# vim: ft=yaml.ansible
|
Loading…
Reference in new issue