so-un-bot/docker-compose.yml

37 lines
1.3 KiB
YAML
Raw Normal View History

2024-01-19 03:29:39 +01:00
# The configuration used to deploy the bot on the production server
# You can adapt it to create your own instance
2023-07-09 02:43:34 +02:00
version: '3.8'
services:
bot:
2024-01-19 03:29:39 +01:00
build: .
2023-07-09 02:43:34 +02:00
restart: unless-stopped
hostname: so-un-bot
2024-01-19 03:29:39 +01:00
# change to your local DNS zone (can be safely removed if not needed)
# for example: in the production server is pve-docer.net.mrlc.cc
domainname: ${DNS_ZONE}
2024-01-19 19:18:00 +01:00
pull_policy: build
2024-01-31 05:07:21 +01:00
networks:
- proxynet
2024-01-19 03:29:39 +01:00
environment:
# Leave /data unless you want to point to an external volume
- DATA_PATH=/data
# Should match the path defined in the volume mount (if you want it to persist)
- ACL_PATH=/acl
- TELEGRAM_TOKEN=${TELEGRAM_TOKEN}
# User id of the administrator user (will receive logs for errors)
- TELEGRAM_ADMIN_ID=${TELEGRAM_ADMIN_ID}
2024-01-31 04:58:34 +01:00
- WEB_BASE_URL=https://so-un-bot.srv.mrlc.cc
2023-07-09 02:43:34 +02:00
volumes:
2024-01-31 04:58:34 +01:00
- ${ACL_DIR}:/acl
labels:
- "traefik.enable=true"
- "traefik.http.routers.so-un-bot.entrypoints=web, websecure"
- "traefik.http.routers.so-un-bot.rule=Host(`so-un-bot.srv.mrlc.cc`)"
- "traefik.http.routers.so-un-bot.tls=true"
2024-01-31 05:07:21 +01:00
- "traefik.http.routers.so-un-bot.tls.certresolver=production"
- "traefik.http.services.so-un-bot.loadbalancer.server.port=8001"
networks:
proxynet:
external: true