Tailscale-Compose-Examples/searxng/docker-compose.yml

38 lines
1.6 KiB
YAML
Raw Normal View History

2024-09-04 10:05:05 -05:00
services:
tailscale-searxng:
image: tailscale/tailscale:latest
hostname: tail # Assign a name this so that you can set your domain name ex. https://tail.penguin-dory.ts.net
2024-09-04 10:05:39 -05:00
#ports: # Uncomment the next two lines to expose the container to your local area network.
2024-09-04 10:05:05 -05:00
# - 8024:8080
environment:
- TS_AUTHKEY= # BE SURE TO ADD YOUR KEY AS NOTHING WILL WORK
#- TS_EXTRA_ARGS=--advertise-tags=tag:container # Uncomment this if you want to add a tag to your node. Useful for access control lists.
#- TS_FUNNEL_CONFIG=/config/funnel.json # Uncomment this and comment the next line if you want to host your app publicly.
2024-12-11 20:29:27 -06:00
#- TS_SERVE_CONFIG=/config/serve.json # Comment this line if you uncomment the one above.
2024-09-04 10:05:05 -05:00
- TS_STATE_DIR=/var/lib/tailscale
2024-12-11 20:29:27 -06:00
- TS_USERSPACE=true
- TS_ACCEPT_DNS=false
2024-09-04 10:05:05 -05:00
volumes:
- ${PWD}/tailserve-config:/config
- ${PWD}/tailscale/state:/var/lib/tailscale
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
- sys_module
restart: unless-stopped
searxng:
container_name: searxng
image: searxng/searxng:latest
restart: unless-stopped
environment:
2024-09-04 10:35:42 -05:00
- BASE_URL=https://search # Change this to be your expected Domain name.
2024-09-04 10:05:05 -05:00
- "INSTANCE_NAME=Searxng"
volumes:
- ./data:/etc/searxng:rw
- type: bind # This volume is to change out the logo with your own if you choose to.
source: ./searxng.png
target: /usr/local/searxng/searx/static/themes/simple/img/searxng.png
network_mode: service:tailscale-searxng
depends_on:
- tailscale-searxng