-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
71 lines (65 loc) · 1.64 KB
/
Copy pathcompose.yml
File metadata and controls
71 lines (65 loc) · 1.64 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
services:
ampache-app:
image: docker.io/nfrastack/ampache:latest
container_name: ampache-app
labels:
- traefik.enable=true
- traefik.http.routers.ampache.rule=Host(`ampache.example.com`)
- traefik.http.services.ampache.loadbalancer.server.port=80
ports:
- 8001:80
volumes:
- ./config:/config
- ./data:/data
- ./logs:/logs
environment:
- CONTAINER_NAME=ampache-app
- TIMEZONE=America/Vancouver
- DB_HOST=ampache-db
- DB_PORT=3306
- DB_NAME=ampache
- DB_USER=ampache
- DB_PASS=ampachepass
- ADMIN_USER=admin # Only required for fresh DB
- ADMIN_EMAIL=admin@example.com # Only required for fresh DB
networks:
- proxy
- services
restart: always
ampache-db:
image: docker.io/nfrastack/mariadb:11.8
container_name: ampache-db
volumes:
- ./db:/data
environment:
- TIMEZONE=America/Vancouver
- CONTAINER_NAME=ampache-db
- ROOT_PASS=rootpassword
- DB_NAME=ampache
- DB_USER=ampache
- DB_PASS=ampachepass
networks:
- services
restart: always
ampache-db-backup:
image: docker.io/tiredofit/db-backup
container_name: ampache-db-backup
volumes:
- ./dbbackup:/backup
environment:
- DB01_HOST=ampache-db
- DB01_TYPE=mariadb
- DB01_NAME=ampache
- DB01_USER=ampache
- DB01_PASS=ampachepass
- DB01_BACKUP_INTERVAL=1440
- DB01_BACKUP_BEGIN=0000
- DB01_CLEANUP_TIME=8640
networks:
- services
restart: always
networks:
proxy:
external: true
services:
external: true