Files
viator/docker/bettercap.yml
T
2026-11-21 11:19:58 -05:00

27 lines
1.1 KiB
YAML

services:
bettercap:
image: bettercap/bettercap:latest
container_name: viator-bettercap
restart: unless-stopped
privileged: true
network_mode: host
command:
- -eval
- >-
set api.rest.username '${BETTERCAP_USER:-viator}';
set api.rest.password '${BETTERCAP_PASSWORD:?Set BETTERCAP_PASSWORD in viator.env}';
set api.rest.address '${VIATOR_DOCKER_GATEWAY:-172.17.0.1}';
set api.rest.port 8081;
set api.rest.alloworigin 'https://bettercap.${VIATOR_DOMAIN:-viator.internal}';
api.rest on;
set ui.address '${VIATOR_DOCKER_GATEWAY:-172.17.0.1}';
set ui.port 1600;
ui on;
set gps.device localhost:2947;
labels:
caddy: bettercap.${VIATOR_DOMAIN:-viator.internal}
caddy.reverse_proxy: host.docker.internal:1600
caddy_1: api.bettercap.${VIATOR_DOMAIN:-viator.internal}
caddy_1.reverse_proxy: host.docker.internal:8081