If you need to access your database in Docker remotely, don't open database port to the internet. Instead expose the port to localnost only and then access the database remotely via SSH tunnel.

Vấn đề bảo mật Docker: Dùng mạng nội bộ (`internal: true`) giúp tăng cường bảo mật nhưng lại làm hỏng OIDC/SSO vì container không thể kết nối đến nhà cung cấp OIDC bên ngoài.
Giải pháp nào cho phép container trong mạng internal vẫn xác thực OIDC thành công mà không cần mở toàn bộ network?
#Docker #Networking #SSO #OIDC #Security #BảoMật #MạngNộiBộ #XácThực
https://www.reddit.com/r/selfhosted/comments/1pzr07h/how_to_use_docker_internal_networks_without/
🐳 Phần 2 loạt bài Docker cho người mới: Xây dựng Docker Images từ A-Z!
Các điểm chính:
- Dockerfile là bản hướng dẫn tạo image
- Lệnh cơ bản: FROM (chọn base image), RUN (cài gói), COPY (thêm file), CMD (lệnh khởi động)
- Tip: Dùng phiên bản cụ thể (vd: ubuntu:22.04) và kết hợp lệnh RUN để giảm dung lượng image
- Đặt tên image với -t và khám phá container bằng docker run -it
#Docker #Container #DevOps #LapTrinh #CloudComputing #DockerImage #MayAo #Containerization
Triển khai stack Docker Compose phức tạp lên VPS Hostinger – tiết kiệm 80% chi phí so với AWS! Stack gồm 5 service backend, PostgreSQL, Redis, MinIO, Traefik, Ollama và frontend. Từ build 2-3h xuống còn 15-20 phút, API từ 2-5s xuống 200-500ms, hỗ trợ 50+ người dùng đồng thời. Chi phí chỉ ~$70/tháng vs $300-400 trên AWS/GCP. #Docker #SelfHosting #VPS #DevOps #DockerCompose #Hostinger #TiếtKiệmChiPhí #TriểnKhaiỨngDụng
https://www.reddit.com/r/selfhosted/comments/1pzq67v/deployed_a_complex_docker_
https://christopherhimes.com/blog/2025/12/30/paperless-ngx
New experiment with self-hosting, this time with Paperless-ngx.
#SelfHosted #Paperless #Docker
Warning: a lot of IT/sysadmin gibberish ahead. If you see this, I've migrated all my websites and apps (including this gotosocial instance) from two Ubuntu VPS's to one new FreeBSD VPS. Oh, and I've also switched from Nginx to Caddy in the process; let's just say it was quite a bit of work and I have some fine tuning still ahead of me. But everything is in Bastille managed thin jails now, I have scripts to (in theory) recreate everything from scratch and only one machine to manage. Thin jails also save a lot of disk space compared to docker containers. So, this should hopefully save me a lot of time (and some money) in the long run.
#FreeBSD #Caddy #BastilleBSD #Docker
Beim Versuch #dawarich auf der #Synology zu installieren, leider an einem Punkt angekommen, wo es nicht weitergeht. Hat es schon jemand installiert und kann helfen ?
Pretty goofy that Ptyxis, the container-focused terminal emulator, which is now the default Terminal on ubuntu, does not support #docker nor #containerd (nor #systemd nspawn)
https://gitlab.gnome.org/chergert/ptyxis#supported-container-technologies
My #selfhosted #mastodon server seems to perform much better on the new setup. I created a LUN on the #synology just for S3 storage. Exposed it to my hypervisor via iSCSI and mounted it to my container host. Finally set the #docker image for Garage to use the LUN for the S3 bucket Mastodon uses.
Fine for a small use case of just me. Wouldn't use it at scale though 😅
Only gripe - the Synology's disks are a tad noisier!
Lỗi bảo mật khi cập nhật container qua Dockhand
Người dùng gặp lỗi "Request forbidden by administrative rules" khi sử dụng Dockhand để cập nhật container thông qua socket-proxy. Mặc dù tính năng Security Scanner đã được kích hoạt, yêu cầu vẫn bị chặn bởi các quy tắc quản trị. Nguyên nhân có thể do cấu hình biến môi trường trong socket-proxy chưa đủ quyền để Dockhand thực hiện các lệnh quét và cập nhật từ xa.
#Docker #Dockhand #SelfHosted #Container #SocketProxy #LỗiKỹThuật #LinuxServer #DevOps
nice thing about #docker on Linux is that it doesn’t take up a giant amount of space for a vm. Just prune unused images, containers, and volumes often and you should be fine. If you need to expand the partition later, you can - or you can mount /var/lib/docker on a separate partition and move the data.
https://www.reddit.com/r/docker/comments/176zhbi/installing_docker_on_a_secondary_partition/
Docker transforma la forma de crear y ejecutar aplicaciones al encapsularlas en contenedores reproducibles. Docker Compose lleva esto más lejos al permitir definir y orquestar múltiples servicios con un solo archivo, facilitando entornos locales, pruebas y despliegues consistentes. Menos fricción, más portabilidad y flujos DevOps claros desde el primer día.
#Docker #DockerCompose #Contenedores #DevOps #Backend #DesarrolloDeSoftware