forked from WeblateOrg/docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (49 loc) · 1.24 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
46
47
48
49
version: '3'
services:
weblate:
image: ghcr.io/iobrokertranslator/weblate:master
tmpfs:
- /app/cache
volumes:
- weblate-data:/app/data
env_file:
- ./environment
restart: unless-stopped
depends_on:
- database
- cache
labels:
com.centurylinklabs.watchtower.scope: "ghcr"
database:
image: postgres:12-alpine
env_file:
- ./environment
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
labels:
com.centurylinklabs.watchtower.scope: "dockerhub"
cache:
image: redis:6-alpine
restart: unless-stopped
command: [redis-server, --save, '60', '1']
volumes:
- redis-data:/data
labels:
com.centurylinklabs.watchtower.scope: "dockerhub"
watchtower-dockerhub:
image: containrrr/watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --cleanup --interval 300 --stop-timeout 30s --scope dockerhub
watchtower-ghcr:
image: containrrr/watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --cleanup --interval 300 --stop-timeout 30s --scope ghcr
volumes:
weblate-data: {}
postgres-data: {}
redis-data: {}