-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-stack.yml
More file actions
63 lines (60 loc) · 1.77 KB
/
docker-stack.yml
File metadata and controls
63 lines (60 loc) · 1.77 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: "3.9"
# https://github.com/plugfox/vixen
# https://hub.docker.com/repository/docker/plugfox/vixen
services:
# Vixen telegram bot
vixen:
hostname: vixen
image: plugfox/vixen:latest
#command: /app/vixen.run --port 8080
networks:
- traefik
#ports:
# - 8080:8080
volumes:
- vixen-data:/app/data
environment:
TZ: UTC
ENVIRONMENT: production
CONFIG_TOKEN: 123:ABC
CONFIG_SECRET: abc123
CONFIG_CHATS: -123,456,-789
CONFIG_DB: /app/data/vixen.db
CONFIG_VERBOSE: warn
CONFIG_REPORT-HOUR: 16
CONFIG_CLOWN: 5
CONFIG_CAS: enabled
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.role == manager
labels:
- "docker.group=vixen"
####################################################################
- "traefik.enable=true"
- "traefik.http.routers.vixen.rule=Host(`vixen.plugfox.dev`)"
- "traefik.http.routers.vixen.entrypoints=https"
- "traefik.http.routers.vixen.tls=true"
- "traefik.http.routers.vixen.tls.certresolver=le"
- "traefik.http.routers.vixen.service=vixen"
- "traefik.http.services.vixen.loadbalancer.server.port=8080"
- "traefik.http.routers.vixen.middlewares=vixen-ratelimit"
- "traefik.http.middlewares.vixen-ratelimit.ratelimit.average=100"
- "traefik.http.middlewares.vixen-ratelimit.ratelimit.burst=50"
# Traefik is a reverse proxy
networks:
# Traefik overlay network
traefik:
name: traefik
external: true
attachable: true
driver: overlay
# docker volume create --driver local --name vixen-data
volumes:
vixen-data:
name: vixen-data
driver: local