11version : " 3.8"
2+
23services :
34 go-app :
45 build :
@@ -8,22 +9,13 @@ services:
89 ports :
910 - " 8080:8080"
1011 volumes :
11- - ./config.yaml:/app/config.yaml
12+ - ./config.yaml:/app/config.yaml
1213 - ./.env:/app/.env
13- - beegfs-mount:/mnt/beegfs-test:rshared
1414 depends_on :
1515 - openldap
16- - redis
17- - beegfs-client
16+ # - redis
1817 networks :
1918 - backend
20- privileged : true
21- devices :
22- - /dev/fuse:/dev/fuse
23- cap_add :
24- - SYS_ADMIN
25- security_opt :
26- - apparmor:unconfined
2719
2820 openldap :
2921 image : osixia/openldap:latest
@@ -32,16 +24,9 @@ services:
3224 LDAP_ORGANISATION : " My Org"
3325 LDAP_DOMAIN : " myorg.local"
3426 LDAP_ADMIN_PASSWORD : " admin"
35- LDAP_BACKEND : " mdb"
36- LDAP_TLS : " false"
37- LDAP_CONFIG_PASSWORD : " config"
3827 ports :
3928 - " 389:389"
4029 - " 636:636"
41- volumes :
42- - ldap-data:/var/lib/ldap
43- - ldap-config:/etc/ldap/slapd.d
44- - ./ldap-init:/container/service/slapd/assets/config/bootstrap/ldif/custom:ro
4530 networks :
4631 - backend
4732
@@ -58,122 +43,6 @@ services:
5843 networks :
5944 - backend
6045
61- redis :
62- image : redis:8.0.1
63- container_name : transaction-log-redis
64- ports :
65- - " 6379:6379"
66- networks :
67- - backend
68-
69- # BeeGFS Management Service
70- beegfs-mgmt :
71- image : beegfs/beegfs-mgmt:latest
72- container_name : beegfs-mgmt
73- hostname : beegfs-mgmt
74- ports :
75- - " 8008:8008"
76- volumes :
77- - beegfs-mgmt-data:/opt/beegfs/mgmt
78- - ./beegfs-config:/etc/beegfs:ro
79- networks :
80- - backend
81- command : >
82- sh -c "
83- /opt/beegfs/sbin/beegfs-setup-mgmt -p /opt/beegfs/mgmt -s 1 -S mgmt &&
84- /opt/beegfs/sbin/beegfs-mgmtd
85- "
86-
87- # BeeGFS Metadata Service
88- beegfs-meta :
89- image : beegfs/beegfs-meta:latest
90- container_name : beegfs-meta
91- hostname : beegfs-meta
92- volumes :
93- - beegfs-meta-data:/opt/beegfs/meta
94- - ./beegfs-config:/etc/beegfs:ro
95- networks :
96- - backend
97- depends_on :
98- - beegfs-mgmt
99- command : >
100- sh -c "
101- sleep 5 &&
102- /opt/beegfs/sbin/beegfs-setup-meta -p /opt/beegfs/meta -s 1 -S meta -m beegfs-mgmt &&
103- /opt/beegfs/sbin/beegfs-meta
104- "
105-
106- # BeeGFS Storage Service
107- beegfs-storage :
108- image : beegfs/beegfs-storage:latest
109- container_name : beegfs-storage
110- hostname : beegfs-storage
111- volumes :
112- - beegfs-storage-data:/opt/beegfs/storage
113- - ./beegfs-config:/etc/beegfs:ro
114- networks :
115- - backend
116- depends_on :
117- - beegfs-mgmt
118- - beegfs-meta
119- command : >
120- sh -c "
121- sleep 10 &&
122- /opt/beegfs/sbin/beegfs-setup-storage -p /opt/beegfs/storage -s 1 -S storage -m beegfs-mgmt &&
123- /opt/beegfs/sbin/beegfs-storage
124- "
125-
126- # BeeGFS Client with LDAP integration
127- beegfs-client :
128- build :
129- context : .
130- dockerfile : Dockerfile.beegfs-client
131- container_name : beegfs-client
132- hostname : beegfs-client
133- privileged : true
134- devices :
135- - /dev/fuse:/dev/fuse
136- cap_add :
137- - SYS_ADMIN
138- - DAC_OVERRIDE
139- security_opt :
140- - apparmor:unconfined
141- volumes :
142- - beegfs-mount:/mnt/beegfs:rshared
143- - ./beegfs-config:/etc/beegfs:ro
144- - ./nsswitch.conf:/etc/nsswitch.conf:ro
145- - ./ldap.conf:/etc/ldap/ldap.conf:ro
146- networks :
147- - backend
148- depends_on :
149- - beegfs-mgmt
150- - beegfs-meta
151- - beegfs-storage
152- - openldap
153- command : >
154- sh -c "
155- echo 'Waiting for BeeGFS services...' &&
156- sleep 15 &&
157- echo 'Setting up BeeGFS client...' &&
158- /opt/beegfs/sbin/beegfs-setup-client -m beegfs-mgmt &&
159- echo 'Starting BeeGFS client...' &&
160- /opt/beegfs/sbin/beegfs-helperd &&
161- /opt/beegfs/sbin/beegfs-client nonDaemonized
162- "
163-
16446networks :
16547 backend :
16648 driver : bridge
167-
168- volumes :
169- beegfs-mgmt-data :
170- beegfs-meta-data :
171- beegfs-storage-data :
172- beegfs-mount :
173- driver : local
174- driver_opts :
175- type : none
176- o : bind
177- device : /tmp/beegfs-mount
178- ldap-data :
179- ldap-config :
0 commit comments