-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
90 lines (86 loc) · 2.52 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
version: '3.7'
services:
bc-mysql:
image: mysql:8.0
container_name: bc-mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
networks:
- bluecherry_net
volumes:
- ./database:/var/lib/mysql
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ADMIN_PASSWORD
TZ: $TZ
bluecherry:
image: bluecherrydvr/bluecherry:latest
container_name: bc-server
cap_add:
- NET_BIND_SERVICE
build:
context: ./server/
network: bluecherry_net
args:
MYSQL_ADMIN_PASSWORD: $MYSQL_ADMIN_PASSWORD
# MYSQL_ADMIN_LOGIN: $MYSQL_ADMIN_LOGIN
# BLUECHERRY_DB_USER: $BLUECHERRY_DB_USER
BLUECHERRY_DB_PASSWORD: $BLUECHERRY_DB_PASSWORD
# BLUECHERRY_DB_NAME: $BLUECHERRY_DB_NAME
# BLUECHERRY_DB_HOST: $BLUECHERRY_DB_HOST
# BLUECHERRY_DB_ACCESS_HOST: $BLUECHERRY_DB_ACCESS_HOST
# BLUECHERRY_LINUX_GROUP_ID: $BLUECHERRY_LINUX_GROUP_ID
# BLUECHERRY_LINUX_USER_ID: $BLUECHERRY_LINUX_USER_ID
restart: unless-stopped
networks:
- bluecherry_net
volumes:
- ./recordings:/var/lib/bluecherry/recordings
- ./data/bconf:/var/lib/bluecherry/.local/share/data/bconf
- ./data/letsencrypt:/usr/share/bluecherry/nginx-includes/letsencrypt
- ./data/backups:/usr/share/bluecherry/backups
# - ./server/bluecherry.conf:/etc/bluecherry.conf
# Enable this only if you have a supported VAAPI device and /dev/dri exists on the host system.
# devices:
# - /dev/dri:/dev/dri
ports:
- "7001:7001/tcp"
- "7002:7002/tcp"
env_file:
- ./.env
depends_on:
- bc-mysql
mta_mailer:
container_name: bc-mail
cap_add:
- NET_BIND_SERVICE
image: juanluisbaptiste/postfix:latest
# We assume bc-mail is only used by Bluecherry apps and not something else on the network
# expose:
# - "25"
dns:
- 8.8.8.8
# ports:
# - "25:25/tcp"
env_file:
- .mailenv
restart: always
networks:
- bluecherry_net
volumes:
- "/etc/localtime:/etc/localtime:ro"
uptime-kuma:
image: louislam/uptime-kuma:latest
container_name: uptime-kuma
volumes:
- ./uptime-kuma-data:/app/data
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "1337:3001"
networks:
- bluecherry_net
restart: always
networks:
bluecherry_net:
name: bluecherry_net