-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
51 lines (41 loc) · 969 Bytes
/
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
version: '3.1'
services:
bot:
build: .
restart: always
# ports:
# - '${WEBHOOK_PORT}:${WEBHOOK_PORT:-8000}'
entrypoint:
- ./bin/entrypoint.sh
depends_on:
- postgres
- redis
environment:
ADMINS: ${ADMINS}
BOT_TOKEN: ${BOT_TOKEN}
RATE_LIMIT: ${RATE_LIMIT:-0.5}
DATABASE_USER: postgres
DATABASE_PASS: postgres
DATABASE_HOST: postgres
DATABASE_PORT: 5432
DATABASE_NAME: postgres
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 5
WEBHOOK_PORT: ${WEBHOOK_PORT}
WEBHOOK_HOST: ${WEBHOOK_HOST:-localhost}
WEBHOOK_PATH: ${WEBHOOK_PATH}
redis:
image: redis:alpine
command: redis-server
environment:
- REDIS_REPLICATION_MODE=master
postgres:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: postgres
volumes:
- postgres_data:/var/lib/postgresql/data/
volumes:
postgres_data: