-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (43 loc) · 1.23 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
version: "3.8"
services:
bot:
# I don't provide ready-to-use images for now, sorry
build:
context: .
dockerfile: Dockerfile
image: telegram-passgen-bot:latest
restart: always
environment:
- BOT_TOKEN=123456:AaBbCcDdEeFfGgHh
depends_on:
- redis
volumes:
- "bot-config:/app/config"
redis:
# You may want to use the official Redis image with data persistency configured
image: registry.groosha.space/groosha/redis-with-config:v6.0-alpine
container_name: "xkcd-password-generator-bot-redis"
hostname: redis
volumes:
- "redis-config:/usr/local/etc/redis"
- "redis-data:/data"
command: "redis-server /usr/local/etc/redis/redis.conf"
volumes:
bot-config:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: './bot-config'
redis-config:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: './redis-config'
redis-data:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: './redis-data'