-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (40 loc) · 1.2 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
services:
rust-bot:
build:
context: "../.."
dockerfile: ./docker/build/Dockerfile
container_name: rust-telegrambot
ports:
- 8080:8080
environment:
# default configuration
- "TELOXIDE_LOG_DIR=/var/log/telegrambot/"
- "TELOXIDE_DATA_DIR=/var/lib/telegrambot/"
- "DATABASE_URL=sqlite:///var/lib/telegrambot/sqlite.db"
- "TELOXIDE_BIND_PORT=8080"
# user provided configuration via .env
- TELOXIDE_PUBLIC_URL
- TELOXIDE_TOKEN
volumes:
- ./log/:/var/log/telegrambot/
- ../../.env:/.env
- ./data/:/var/lib/telegrambot/
# in case you use traefik
labels:
- traefik.enable=true
- traefik.http.routers.telegrambot.rule=Host(`bot.example.org`)
- traefik.http.routers.telegrambot.tls=true
- traefik.http.services.telegrambot.loadbalancer.server.port=8080
# in case you use another reverse proxy, e.g. nginx
networks:
telegramnet:
# static ip for reverse proxy (e.g. nginx)
ipv4_address: 192.168.16.200
networks:
telegramnet:
name: telegram_network
ipam:
driver: default
config:
- subnet: 192.168.16.0/24
ip_range: 192.168.16.0/24