-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (38 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
38 lines (38 loc) · 1.05 KB
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
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
labels: [ "com.centurylinklabs.watchtower.scope=mechanicalmilkshake" ]
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
labels: [ "com.centurylinklabs.watchtower.scope=mechanicalmilkshake" ]
watchtower:
image: nickfedor/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 30 --label-enable --scope mechanicalmilkshake
restart: always
labels: [ "com.centurylinklabs.watchtower.scope=mechanicalmilkshake" ]