Project

General

Profile

Synology Containerization » History » Version 4

Jörg Ebeling, 03/31/2025 10:36 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 1 Jörg Ebeling
- [l2cpbg-docker.zip](https://projects.shbe.net/l2cpbg/l2cpbg-docker.zip) will always load the newest L2CPBG version during build
6 4 Jörg Ebeling
- Required Synology Apps:
7
  - ✅ Container Manager
8
  - ✅ Text Editor<br>
9
  ![](1_prerequist.png)
10 1 Jörg Ebeling
11 3 Jörg Ebeling
12
## Installation
13 2 Jörg Ebeling
14 1 Jörg Ebeling
### 1. Prepare Files
15 4 Jörg Ebeling
16
1. Upload `l2cpbg-docker.zip` to `/docker` in "File Station"<br>
17
   ![](2_upload.png)
18 2 Jörg Ebeling
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