-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
65 lines (59 loc) · 1.33 KB
/
docker-compose.yaml
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
64
65
version: '3.8'
networks:
botnet:
volumes:
server-data:
driver: local
services:
bot-server:
image: ghcr.io/bots-house/docker-telegram-bot-api:latest
environment:
# get this values from https://core.telegram.org/api/obtaining_api_id
TELEGRAM_API_ID: ${TELEGRAM_API_ID}
TELEGRAM_API_HASH: ${TELEGRAM_API_HASH}
command:
# set working directory for files
- --dir=/var/lib/telegram-bot-api
- --verbosity=2
- --local
volumes:
- server-data:/var/lib/telegram-bot-api
ports:
- 8081:8081
nginx:
restart: always
build:
context: ./web-service/nginx
container_name: "nginx-server"
volumes:
- ./bot:/var/www
ports:
- "80:80"
networks:
- botnet
depends_on:
- php
redis:
build:
context: ./database/redis
command: redis-server --requirepass ${REDIS_PASSWORD}
container_name: redis
ports:
- "6379:6379"
volumes:
- ./database/redis/redis-data:/var/lib/redis
- ./database/redis/redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
networks:
- botnet
php:
build:
context: ./web-service/php
container_name: "php"
# Attach
tty: true
volumes:
- ./bot:/var/www
networks:
- botnet