惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
aimingoo的专栏
aimingoo的专栏
S
SegmentFault 最新的问题
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta
宝玉的分享
宝玉的分享
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 叶小钗
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
MyScale Blog
MyScale Blog
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 聂微东
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Blog — PlanetScale
Blog — PlanetScale
T
Tailwind CSS Blog
Recent Announcements
Recent Announcements
Jina AI
Jina AI
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Setting Up Docker on My Hosting Server (selfmade.lab)
Bharath Kuma · 2026-04-24 · via DEV Community

Today I started setting up Docker on my hosting server as part of my project. My goal is to run PostgreSQL and backend services in containers and manage everything cleanly.

This post is a simple log of what I did today — step by step


Goal for Today

  • Set up Docker on my hosting server
  • Prepare environment for database and backend
  • Begin container-based development
  • Lab name: selfmade.lab

Step 1: Connected to My Server

First, I connected to my hosting server using SSH:

ssh root@your_server_ip

Enter fullscreen mode Exit fullscreen mode

After login, I confirmed I’m inside the server.


Step 2: Installed Docker

Then I installed Docker using basic commands:

apt update
apt install docker.io -y

Enter fullscreen mode Exit fullscreen mode

After installation, I started Docker:

systemctl start docker
systemctl enable docker

Enter fullscreen mode Exit fullscreen mode

To check if Docker is working:

docker --version

Enter fullscreen mode Exit fullscreen mode


Step 3: Tested Docker

I ran a simple test container:

docker run hello-world

Enter fullscreen mode Exit fullscreen mode

This confirmed Docker is installed and running correctly.


Step 4: Started PostgreSQL Container

Next, I started my database container:

docker run -d \
--name selfmade-postgres \
-e POSTGRES_PASSWORD=1234 \
-p 5432:5432 \
postgres

Enter fullscreen mode Exit fullscreen mode

Now PostgreSQL is running inside Docker.


Step 5: Opened Database Port

To allow external connection:

ufw allow 5432

Enter fullscreen mode Exit fullscreen mode


Step 6: Connected Using pgAdmin

From my local system, I connected using:

  • Host: your_server_ip
  • Port: 5432
  • Username: postgres
  • Password: 1234

Connection was successful


Step 7: Planning Next Steps

Today I only completed the base setup. Next, I plan to:

  • Use docker-compose for better management
  • Add FastAPI backend
  • Secure database using .env
  • Setup domain for selfmade.lab
  • Add Nginx for reverse proxy

Challenges I Faced

  • Initial confusion with Docker setup
  • Understanding server vs local environment
  • Port access configuration

But step by step, everything started working.


What I Learned Today

  • Docker can be installed easily on a server
  • Containers simplify backend setup
  • PostgreSQL runs smoothly inside Docker
  • Remote connection using pgAdmin is very useful

Final Thoughts

Today was a strong start for my project infrastructure. Setting up Docker on my hosting server gave me more confidence to move forward with deployment.

More updates coming soon as I build selfmade.lab