-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
39 lines (39 loc) · 1.01 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
version: '2.3'
services:
bot:
image: ghcr.io/floatingmilkshake/mechanicalmilkshake
depends_on:
redis:
condition: service_healthy
restart: on-failure
volumes:
- type: bind
source: /etc/localtime
target: /etc/localtime
read_only: true
- type: bind
source: ./config.json
target: /app/config.json
# Comment out or edit this mount if you aren't using an SSH key for package update checks, or if you are using a different key format
- type: bind
source: ./id_ed25519
target: /app/id_ed25519
redis:
image: redis:alpine
restart: always
volumes:
- type: bind
source: ./db
target: /data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
command: --appendonly yes
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 30 --label-enable
restart: always