Blockquote
I’m relatively new to docker on linux and I have run into an issue I cannot seem to solve.
My docker containers ruun well their status is healthy but i cannot access them frrom outside the linux server or inside using curl for ports 80,81,8080 etc.
Here is my docker-compose.yml
version: '3'
networks:
npm:
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- /home/docker/nginxproxymanager/data:/data
- /home/docker/nginxproxymanager/letsencrypt:/etc/letsencrypt
networks:
npm:
here is my docker inspepct result
[
{
"Id": "3b1991e3941b8ed7c718268b29e47d68011357ff1222c6fe310dcb54c379752d",
"Created": "2023-06-03T10:15:33.185498283Z",
"Path": "/start.sh",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 31194,
"ExitCode": 0,
"Error": "",
"StartedAt": "2023-06-03T10:15:33.434435306Z",
"FinishedAt": "0001-01-01T00:00:00Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2023-06-03T10:20:33.686483767Z",
"End": "2023-06-03T10:20:33.734300983Z",
"ExitCode": 0,
"Output": "\"2023-06-03T10:20:33.732901Z\""
},
{
"Start": "2023-06-03T10:21:33.737222644Z",
"End": "2023-06-03T10:21:33.789632901Z",
"ExitCode": 0,
"Output": "\"2023-06-03T10:21:33.788392Z\""
},
{
"Start": "2023-06-03T10:22:33.791834334Z",
"End": "2023-06-03T10:22:33.857401669Z",
"ExitCode": 0,
"Output": "\"2023-06-03T10:22:33.856231Z\""
},
{
"Start": "2023-06-03T10:23:33.859498174Z",
"End": "2023-06-03T10:23:33.90540046Z",
"ExitCode": 0,
"Output": "\"2023-06-03T10:23:33.904039Z\""
},
{
"Start": "2023-06-03T10:24:33.90817906Z",
"End": "2023-06-03T10:24:33.973572058Z",
"ExitCode": 0,
"Output": "\"2023-06-03T10:24:33.972289Z\""
}
]
}
,
"Name": "/vaultwarden",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "docker-default",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/home/docker/vaultwarden:/data:rw"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "npm_npm",
"PortBindings": {
"80/tcp": [
{
"HostIp": "",
"HostPort": "8080"
}
]
},
"RestartPolicy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": [],
"ConsoleSize": [
0,
0
],
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "private",
"Dns": null,
"DnsOptions": null,
"DnsSearch": null,
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": null,
"DeviceCgroupRules": null,
"DeviceRequests": null,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": null,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Name": "overlay2"
},
"Mounts": [
{
"Type": "bind",
"Source": "/home/docker/vaultwarden",
"Destination": "/data",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "3b1991e3941b",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"3012/tcp": {},
"80/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"ROCKET_PROFILE=release",
"ROCKET_ADDRESS=0.0.0.0",
"ROCKET_PORT=80"
],
"Cmd": [
"/start.sh"
],
"Healthcheck": {
"Test": [
"CMD",
"/healthcheck.sh"
],
"Interval": 60000000000,
"Timeout": 10000000000
},
"Image": "vaultwarden/server:latest",
"Volumes": {
"/data": {}
},
"WorkingDir": "/",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"com.docker.compose.config-hash": "b3190af0cb22d936a9871fba61d4500f648285703d 5f0bc36ce5fa0d9f212814",
"org.opencontainers.image.version": "1.28.1"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "c274f850019cc134fd2e47862cd5914cb08342e87782738c0a39ff393812bde8",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"3012/tcp": null,
"80/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "8080"
},
{
"HostIp": "::",
"HostPort": "8080"
}
]
},
"SandboxKey": "/var/run/docker/netns/c274f850019c",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"npm_npm": {
"IPAMConfig": null,
"Links": null,
"Aliases": [
"3b1991e3941b",
"vaultwarden"
],
"NetworkID": "3004060365b46dd14321aaee8b28f2d00f8b53eec6bc67698d2f6e8252e 9840b",
"EndpointID": "1582edb1ed9bd9106d7dec4e96b33fb1b40a9942e77399e4a84ac08424 c07713",
"Gateway": "172.18.0.1",
"IPAddress": "172.18.0.3",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:12:00:03",
"DriverOpts": null
}
}
}
}
]
I tried it on a different server and it works but no luck on this one. The specs and settings of the 2 servers are exactlyy the same. PS: They arer both strato servers