-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.dev.yml
124 lines (117 loc) · 2.73 KB
/
docker-compose.dev.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
114
115
116
117
118
119
120
121
122
123
124
version: '3'
services:
db:
image: mariadb:latest
volumes:
- mariadb-data:/var/lib/mysql
environment:
- MYSQL_DATABASE=borghive
- MYSQL_USER=borghive
- MYSQL_PASSWORD=borghive
- MYSQL_RANDOM_ROOT_PASSWORD=1
app:
build:
context: .
dockerfile: Dockerfile.base
command: python manage.py runserver 0.0.0.0:8000
environment:
- DEBUG=True
- MYSQL_HOST=db
- MYSQL_DATABASE=borghive
- MYSQL_USER=borghive
- MYSQL_PASSWORD=borghive
- BORGHIVE_ADMIN_PASSWORD=login
env_file:
- .env
- .dev
volumes:
- ./src:/app
- borg-config:/config
- borg-repos:/repos
- static:/staticfiles
ports:
- "8000:8000"
depends_on:
- db
worker:
build:
context: .
dockerfile: Dockerfile.base
entrypoint: celery -A core worker -l DEBUG -B --scheduler django_celery_beat.schedulers:DatabaseScheduler
environment:
- DEBUG=True
- MYSQL_HOST=db
- MYSQL_DATABASE=borghive
- MYSQL_USER=borghive
- MYSQL_PASSWORD=borghive
env_file:
- .env
- .dev
volumes:
- ./src:/app
- borg-config:/config
- borg-repos:/repos:ro
depends_on:
- db
watcher:
build:
context: .
dockerfile: Dockerfile.base
entrypoint: /bin/bash -c "/app/manage.py watch_repositories"
environment:
- APP_LOG_LEVEL=DEBUG
- MYSQL_HOST=db
- MYSQL_DATABASE=borghive
- MYSQL_USER=borghive
- MYSQL_PASSWORD=borghive
restart: 'on-failure'
volumes:
- ./src:/app
- borg-repos:/repos:ro
depends_on:
- db
borg:
build:
context: .
dockerfile: Dockerfile.borg
depends_on:
- db
environment:
- DEBUG=True
- MYSQL_HOST=db
- MYSQL_DATABASE=borghive
- MYSQL_USER=borghive
- MYSQL_PASSWORD=borghive
- BORG_LDAP_HOST=ldap://ldap
- BORG_LDAP_BASE_DN=dc=borghive,dc=local
- BORG_LDAP_READONLY_DN=cn=readonly,dc=borghive,dc=local
- BORG_LDAP_READONLY_USER_PASSWORD=readonly
volumes:
- borg-repos:/repos
- borg-config:/config
- ./src:/app
ports:
- "22:22"
ldap:
image: osixia/openldap-backup:latest
environment:
- LDAP_ORGANISATION=borghive
- LDAP_DOMAIN=borghive.local
- LDAP_ADMIN_PASSWORD=borghive
- LDAP_READONLY_USER=true
- LDAP_BACKUP_CONFIG_CRON_EXP="*/5 * * * *"
- LDAP_BACKUP_DATA_CRON_EXP="*/5 * * * *"
volumes:
- ldap-data:/var/lib/ldap
- ldap-config:/etc/ldap/slapd.d
- ldap-backup:/data/backup
redis:
image: redis:latest
volumes:
mariadb-data:
borg-repos:
borg-config:
ldap-backup:
ldap-data:
ldap-config:
static: