-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (84 loc) · 2.53 KB
/
docker-compose.yml
File metadata and controls
89 lines (84 loc) · 2.53 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
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:-UTC}
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -p\"$${MYSQL_ROOT_PASSWORD}\" -h 127.0.0.1 --silent"]
interval: 10s
timeout: 5s
retries: 10
start_period: 20s
bluecherry:
# Use your pushed tag (dev-ci, date, or sha). Avoid building locally here.
image: bluecherrydvr/bluecherry:dev-ci
pull_policy: always # ensure updated pulls on 'up' (Compose v2.21+)
container_name: bc-server
restart: unless-stopped
networks: [bluecherry_net]
depends_on:
bc-mysql:
condition: service_healthy
cap_add:
- NET_BIND_SERVICE
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
ports:
- "7001:7001/tcp"
- "7002:7002/tcp"
env_file:
- ./.env
environment:
# Ensure the app points at the Compose service name
BLUECHERRY_DB_HOST: bc-mysql
# Map your .env's BLUECHERRY_USERHOST to what the entrypoint expects
BLUECHERRY_DB_ACCESS_HOST: ${BLUECHERRY_USERHOST:-%}
TZ: ${TZ:-UTC}
# Optional debug toggles:
# DEBUG: "1"
# DISABLE_WATCHDOG: "1"
# WATCHDOG_INTERVAL: "5"
# Robust process healthcheck (overrides any old baked one)
healthcheck:
test: ["CMD-SHELL", "pgrep -f '/usr/sbin/bc-server' >/dev/null || exit 1"]
interval: 30s
timeout: 5s
start_period: 60s
retries: 10
mta_mailer:
image: juanluisbaptiste/postfix:latest
container_name: bc-mail
cap_add: [NET_BIND_SERVICE]
dns: [8.8.8.8]
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