-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-compose.example.yml
More file actions
106 lines (102 loc) · 3.03 KB
/
dev-compose.example.yml
File metadata and controls
106 lines (102 loc) · 3.03 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
networks:
codeserver_net:
external:
true
services:
code-server-proxy-dev:
image: code-server-proxy-dev:latest
container_name: code-server-proxy-dev
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
- net.ipv6.conf.default.disable_ipv6=1
- net.ipv4.tcp_keepalive_time=60
- net.ipv4.tcp_keepalive_intvl=10
- net.ipv4.tcp_keepalive_probes=5
build:
context: ./proxy-backend
dockerfile: dev.Dockerfile
args:
- UID=1000
- GID=1000
- USERNAME=ctolon
hostname: localhost
working_dir: /app
stdin_open: true
networks:
codeserver_net:
ipv4_address: 172.71.0.120
restart: unless-stopped
volumes:
- ./proxy-backend:/app/
ports:
- 1081:1081
code-server-agent-dev:
image: code-server-agent-dev:latest
container_name: code-server-agent-dev
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
- net.ipv6.conf.default.disable_ipv6=1
- net.ipv4.tcp_keepalive_time=60
- net.ipv4.tcp_keepalive_intvl=10
- net.ipv4.tcp_keepalive_probes=5
build:
context: ./agent
dockerfile: dev.Dockerfile
args:
- UID=1000
- GID=1000
- USERNAME=ctolon
hostname: localhost
working_dir: /app
stdin_open: true
networks:
codeserver_net:
ipv4_address: 172.71.0.123
restart: unless-stopped
volumes:
- ./agent:/app/
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 3033:3033
# cn=admin,dc=homelab,dc=local
# ldapadd -Y EXTERNAL -H ldapi:/// -f memberof.ldif
# ldapadd -Y EXTERNAL -H ldapi:/// -f bootstrap.ldif
# ldapadd -Y EXTERNAL -H ldapi:/// -f <file>
# ldapsearch -Y EXTERNAL -H ldapi:/// -b "cn=config" "(olcOverlay=memberof)"
# ldapsearch -x -D "cn=admin,dc=homelab,dc=local" -w admin -b "uid=peter.schmidt,ou=Marketing,dc=homelab,dc=local"
# https://www.adimian.com/blog/how-to-enable-memberof-using-openldap/
openldap:
image: osixia/openldap:latest
container_name: openldap
environment:
LDAP_BASE_DN: "dc=homelab,dc=local"
LDAP_ORGANISATION: "Example Organization"
LDAP_DOMAIN: "homelab.local"
LDAP_ADMIN_PASSWORD: "admin"
LDAP_CONFIG_PASSWORD: config
LDAP_TLS: "false"
#LDAP_CUSTOM_LDIF_DIR: /container/service/slapd/assets/config/bootstrap/ldif/custom
#volumes:
#- ./custom-ldiff/bootstrap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/50-bootstrap.ldif
ports:
- "389:389"
- "636:636" # default port for unsecured LDAP
command: --copy-service
restart: unless-stopped
networks:
codeserver_net:
ipv4_address: 172.71.0.121
phpldapadmin:
image: osixia/phpldapadmin:latest
container_name: phpldapadmin
environment:
PHPLDAPADMIN_LDAP_HOSTS: openldap
PHPLDAPADMIN_HTTPS: "false" # deactivate HTTPS
ports:
- "8060:80"
restart: unless-stopped
depends_on:
- openldap
networks:
codeserver_net:
ipv4_address: 172.71.0.122