Project

General

Profile

Synology Containerization » History » Version 7

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