Synology Containerization » History » Version 6
Jörg Ebeling, 03/31/2025 10:46 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 | 5 | Jörg Ebeling | 1. 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 | 2. 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 | 1 | Jörg Ebeling | 3. 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 | 6 | Jörg Ebeling | 4. **IMPORTANT:** Set encoding to UTF-8 |
25 | <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 | |||
51 | maxarealength = 7 # Longest possible length of a telephone number within your local area |
||
52 | ``` |
||
53 | 6 | Jörg Ebeling | |
54 | <img style="border: 2px solid grey;" src="5_ldap-base.png"/> |
||
55 | <img style="border: 2px solid grey;" src="6_dav.png"/> |
||
56 | 2 | Jörg Ebeling | |
57 | ⚠️ **Do NOT modify:** |
||
58 | - `[ldap] port` |
||
59 | - `[db] directory` |
||
60 | |||
61 | ### 3. Deploy Container |
||
62 | ``` |
||
63 | 5. Open Container Manager → Project → Create |
||
64 | 6. Set path to `/docker/l2cpbg` |
||
65 | 7. Select "Use existing docker-compose..." |
||
66 | 8. Skip web portal setup → Next → Enable auto-start → Done |
||
67 | ``` |
||
68 | |||
69 | ### 4. Verification |
||
70 | - Successful build shows: `Exit Code: 0` |
||
71 | - Check logs if errors occur |
||
72 | |||
73 | ## Pro Tips |
||
74 | - 🔄 **Reconfiguration:** Edit `/docker/l2cpbg/l2cpbg.conf` → Container Manager: Project → right-click l2cpbg → Restart |
||
75 | - 🐛 **Debugging:** Check Container Manager logs |