xaverius666
11/21/2023, 2:54 AMlldap:17170 i assume the caddy on different docker networkt with lldapmi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 4:19 AMgrafana:3000) instead and that worked.mi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 4:23 AMmi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 4:27 AMxaverius666
11/21/2023, 4:43 AMversion: "3"
services:
lldap:
image: nitnelave/lldap:latest
ports:
- 25000:3890
volumes:
- data:/app/data
environment:
- LLDAP_JWT_SECRET=RANDOMTHINGSTOADD
- LLDAP_LDAP_USER_PASS=admindemo
- LLDAP_LDAP_BASE_DN=dc=example,dc=com
- LLDAP_VERBOSE=true
caddy:
image: caddy
ports:
- 25100:80
volumes:
- ./caddyfile:/etc/caddy/Caddyfile
volumes:
data:
Caddyfile
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace ":80" below with your
# domain name.
:80 {
# Set this path to your site's directory.
root * /usr/share/caddy
# Enable the static file server.
file_server
# Another common task is to set up a reverse proxy:
reverse_proxy lldap:17170
# Or serve a PHP site through php-fpm:
# php_fastcgi localhost:9000
}
# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile
# https://github.com/caddyserver/dist/blob/master/config/Caddyfilemi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 4:57 AMmi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 4:57 AMxaverius666
11/21/2023, 4:59 AMmi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 5:01 AMsh
/srv # wget --spider -o /dev/stdout grafana:3000
Connecting to grafana:3000 (10.89.0.10:3000)
Connecting to grafana.localhost:50443 ([::1]:50443)
wget: can't connect to remote host: Connection refused
/srv # wget --spider -o /dev/stdout lldap:3000
wget: bad address 'lldap:3000'xaverius666
11/21/2023, 5:03 AMmi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 5:06 AMjson
"Networks": {
"server_default": {
"EndpointID": "",
"Gateway": "10.89.0.1",
"IPAddress": "10.89.0.3",
"IPPrefixLen": 24,
"IPv6Gateway": "fdc1:8b78:44dc:d691::1",
"GlobalIPv6Address": "fdc1:8b78:44dc:d691::3",
"GlobalIPv6PrefixLen": 64,
"MacAddress": "6e:74:b3:77:c8:f4",
"NetworkID": "server_default",
"DriverOpts": null,
"IPAMConfig": null,
"Links": null,
"Aliases": [
"caddy",
"82b2138689e2"
]
}
}mi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 5:07 AMmi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 5:08 AMnetwork_mode: "slirp4netns:allow_host_loopback=true" for lldap in the configurationmi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 5:08 AMmi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 5:08 AMmi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 5:10 AMmi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 5:10 AMmi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 5:10 AMmi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 5:11 AMxaverius666
11/21/2023, 5:13 AMmi_se_cmene_la_o_gy._el_djeis_gy
11/21/2023, 7:14 AMpostgresql://lldap:${POSTGRESQL_PASSWORD_LLDAP}@%2Fvar%2Frun%2Fpostgresql/lldap and add /run/postgresql:/var/run/postgresql as a volume. now I don't need network access to the hostxaverius666
11/21/2023, 7:16 AM