-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
113 lines (104 loc) · 2.07 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: '3'
services:
db:
image: mariadb:10.5
volumes:
- mariadb-data:/var/lib/mysql
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=1
env_file:
- .env
app:
image: bpereto/borg-hive:0.1.3
env_file:
- .env
volumes:
- borg-config:/config
- borg-repos:/repos
- static:/staticfiles
ports:
- "8000:8000"
depends_on:
- db
worker:
image: bpereto/borg-hive:0.1.3
entrypoint: celery -A core worker -l INFO -B --scheduler django_celery_beat.schedulers:DatabaseScheduler
env_file:
- .env
volumes:
- borg-config:/config
- borg-repos:/repos:ro
depends_on:
- db
watcher:
image: bpereto/borg-hive:0.1.3
entrypoint: /bin/bash -c "/app/manage.py watch_repositories"
env_file:
- .env
volumes:
- borg-repos:/repos:ro
depends_on:
- db
restart: 'on-failure'
borg:
image: bpereto/borg-hive:borg-0.1.3
depends_on:
- db
env_file:
- .env
volumes:
- borg-repos:/repos
- borg-config:/config
ports:
- "${BORG_SSH_PORT}:22"
# nginx:
# build:
# context: .
# dockerfile: Dockerfile.nginx
# volumes:
# - static:/staticfiles
# ports:
# - 80:80
# depends_on:
# - app
ldap:
# image: osixia/openldap:latest
image: osixia/openldap-backup:1.4.0-amd64
env_file:
- .env
volumes:
- ldap-data:/var/lib/ldap
- ldap-config:/etc/ldap/slapd.d
- ldap-backup:/data/backup
redis:
# image: redis:latest
image: redis:6.0.7-buster
volumes:
mariadb-data:
ldap-data:
ldap-config:
ldap-backup:
borg-config:
static:
borg-repos:
#
# EXAMPLES for other repository locations (borg-repos):
#
# BIND MOUNT on docker host:
#
# volumes:
# borg-repos:
# driver_opts:
# type: none
# o: bind
# device: /opt/mydata/path
#
# NFS MOUNT:
#
# volumes:
# example:
# driver_opts:
# type: "nfs"
# o: "nfsvers=4,addr=10.40.0.199,nolock,soft,rw"
# device: ":/docker/example"
#