-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
54 lines (44 loc) · 1.19 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
44
45
46
47
48
49
50
51
52
53
54
version: '3.9'
services:
captcha_bot:
container_name: CaptchaBot
image: captcha_bot
build: .
environment:
- BOT_TOKEN=${BOT_TOKEN}
- CHAT_ID_1=${CHAT_ID_1}
- CHAT_ID_2=${CHAT_ID_2}
- CHAT_ID_3=${CHAT_ID_3}
- CHAT_ID_4=${CHAT_ID_4}
ports:
- "8443:443"
volumes:
- ./logs:/~/CaptchaBot/logs
- ./users:/~/CaptchaBot/users
restart: on-failure
volumes:
logs:
users:
# -------------------------------
# Create and start container:
# $ export BOT_TOKEN=<BOT_TOKEN>
# $ export CHAT_ID_1=<CHAT_ID_1>
# $ export CHAT_ID_2=<CHAT_ID_2>
# $ export CHAT_ID_3=<CHAT_ID_3>
# $ export CHAT_ID_4=<CHAT_ID_4>
# $ docker-compose up -d
# -------------------------------
# Stop lifted containers:
# $ docker-compose stop
# -------------------------------
# Start stopped containers
# $ docker-compose start
# -------------------------------
# Stop and delete containers and network:
# $ docker-compose down
# -------------------------------
# Remove image:
# $ docker rmi captcha_bot
# -------------------------------
# Clear logs & users:
# $ sudo rm -rf logs/*