Project

General

Profile

Synology Containerization » History » Version 3

Jörg Ebeling, 03/31/2025 10:31 PM

1 2 Jörg Ebeling
# Synology Containerization Guide for L2CPBG
2 1 Jörg Ebeling
3 2 Jörg Ebeling
## Prerequisites
4
- Synology NAS with **Container Manager** support
5
- Required packages:
6
  - ✅ Container Manager
7
  - ✅ Text Editor
8
- [l2cpbg-docker.zip](https://projects.shbe.net/l2cpbg/l2cpbg-docker.zip) will always load the newest L2CPBG version during build
9 1 Jörg Ebeling
10 3 Jörg Ebeling
![](1_prerequist.png)
11
12
13 2 Jörg Ebeling
## Installation
14 1 Jörg Ebeling
15 2 Jörg Ebeling
### 1. Prepare Files
16
```
17
1. Upload `l2cpbg-docker.zip` to `/docker` in "File Station"
18
2. Right-click `l2cpbg-docker.zip` → "Extract Here" (creates `/docker/l2cpbg` subfolder)
19
```
20 1 Jörg Ebeling
21 2 Jörg Ebeling
### 2. Configure Settings
22
```
23
3. Open `/docker/l2cpbg/l2cpbg.conf` in "Text editor"
24
4. IMPORTANT: Set encoding to UTF-8: File → Encoding → Unicode (UTF-8)
25
```
26 1 Jörg Ebeling
27 2 Jörg Ebeling
#### Key Configuration:
28
29
```toml
30
[ldap]
31
  # Change "example" and "com" to whatever you like,
32
  # but only use alphanumeric characters
33
  base      = "dc=example, dc=com" 
34
35
[ldap.bind]
36
  dn   = "cn=phone"      # Change "phone" to your preferred LDAP username
37
  pass = "your-password" # LDAP password
38
39
[dav]
40
  server       = "https://cloudserver.example.com/remote.php/dav" # Users personal CardDav URL should be detected from server
41
  user         = "cloud-login-name"
42
  pass         = "cloud-login-password"
43
44
[location]
45
  country       = "DE"
46
  int           = 49   # Your international dial code. 1 = US, 49 = Germany, ...
47
  area          = 30   # Your local area code (without a leading 0), like 30 = Berlin
48
  areaPrefix    = "0"  # Dial prefix for national calls (has to be written as "string")
49
50
  maxarealength = 7    # Longest possible length of a telephone number within your local area
51
```
52
53
⚠️ **Do NOT modify:**
54
- `[ldap] port` 
55
- `[db] directory`
56
57
### 3. Deploy Container
58
```
59
5. Open Container Manager → Project → Create
60
6. Set path to `/docker/l2cpbg`
61
7. Select "Use existing docker-compose..."
62
8. Skip web portal setup → Next → Enable auto-start → Done
63
```
64
65
### 4. Verification
66
- Successful build shows: `Exit Code: 0`
67
- Check logs if errors occur
68
69
## Pro Tips
70
- 🔄 **Reconfiguration:** Edit `/docker/l2cpbg/l2cpbg.conf` → Container Manager: Project → right-click l2cpbg → Restart
71
- 🐛 **Debugging:** Check Container Manager logs