mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
acme-companion prefers com.github.nginx-proxy.nginx over the legacy jrcs.letsencrypt_nginx_proxy_companion namespace (functions.sh checks the new label first, falls back to the old one).
71 lines
2.0 KiB
Plaintext
71 lines
2.0 KiB
Plaintext
services:
|
|
nginx-proxy:
|
|
image: nginxproxy/nginx-proxy:1.11.6-alpine
|
|
restart: always
|
|
ports:
|
|
- '80:80'
|
|
- '443:443'
|
|
# Bare-IP access only. Uncomment to enable.
|
|
# environment:
|
|
# DEFAULT_HOST: 'bot.example.com'
|
|
volumes:
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- ./nginx-certs:/etc/nginx/certs:ro
|
|
- ./nginx-vhost.d:/etc/nginx/vhost.d:ro
|
|
- ./nginx-html:/usr/share/nginx/html:ro
|
|
networks: [proxy]
|
|
labels:
|
|
- 'com.github.nginx-proxy.nginx=true'
|
|
container_name: nginx-proxy
|
|
|
|
acme-companion:
|
|
image: nginxproxy/acme-companion
|
|
restart: always
|
|
environment:
|
|
DEFAULT_EMAIL: 'admin@yoursfunny.top'
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- ./nginx-certs:/etc/nginx/certs:rw
|
|
- ./nginx-vhost.d:/etc/nginx/vhost.d:rw
|
|
- ./nginx-html:/usr/share/nginx/html:rw
|
|
- ./nginx-acme:/etc/acme.sh
|
|
networks: [proxy]
|
|
container_name: acme-companion
|
|
depends_on:
|
|
- nginx-proxy
|
|
|
|
tgxmb:
|
|
image: yoursfunny/telegram-twitter-media-bot:latest
|
|
restart: always
|
|
environment:
|
|
LOCAL_USER_ID: '1000'
|
|
TELOXIDE_TOKEN: ''
|
|
BOT_ADMIN: ''
|
|
PIXIV_REFRESH_TOKEN: ''
|
|
# Optional: x.com session cookie (auth_token) — fetches NSFW tweets
|
|
# that the public syndication endpoint withholds.
|
|
TWITTER_AUTH_TOKEN: ''
|
|
EDIT_MESSAGE_TTL_SECONDS: '86400'
|
|
# Link-result cache TTL (default 604800 = 7 days).
|
|
LINK_CACHE_TTL_SECONDS: '604800'
|
|
RUST_LOG: 'info'
|
|
VIRTUAL_HOST: 'bot.example.com'
|
|
VIRTUAL_PORT: '8443'
|
|
# LETSENCRYPT_HOST: 'bot.example.com'
|
|
WEBHOOK: 'true'
|
|
WEBHOOK_LISTEN: '0.0.0.0'
|
|
WEBHOOK_PORT: '8443'
|
|
WEBHOOK_URL: 'https://bot.example.com/'
|
|
# WEBHOOK_CERT: './cert/cert.pem'
|
|
WEBHOOK_SECRET_TOKEN: ''
|
|
volumes:
|
|
- ./data:/app/data
|
|
networks: [proxy]
|
|
depends_on:
|
|
- nginx-proxy
|
|
container_name: tgxmb
|
|
|
|
networks:
|
|
proxy:
|
|
name: proxy
|