Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Tag: Multi-Container

Docker

Docker: Use Compose to Run Multi-Container Applications

- 19.07.26 - ErcanOPAK comment on Docker: Use Compose to Run Multi-Container Applications

🚀 One Command, All Containers App + database + cache = multiple containers. Docker Compose runs them all with one command. 📝 docker-compose.yml version: ‘3.8’ services: web: build: . ports: – “8000:8000” environment: – DB_HOST=database – DB_USER=postgres – DB_PASSWORD=postgres – DB_NAME=app depends_on: – database – redis networks: – app-network database: image: postgres:15 environment: – POSTGRES_PASSWORD=postgres […]

Read More
Docker

Docker: Master Docker Compose File Structure

- 15.07.26 - ErcanOPAK comment on Docker: Master Docker Compose File Structure

📄 Docker Compose File Structure Compose files can be complex. Understanding structure creates clean, maintainable configs. 📝 Compose Structure version: ‘3.8’ services: web: image: nginx:latest container_name: web restart: always ports: – “80:80” – “443:443” environment: – NODE_ENV=production env_file: – .env volumes: – ./html:/usr/share/nginx/html depends_on: – database networks: – app-network healthcheck: test: [“CMD”, “curl”, “-f”, “http://localhost”] […]

Read More
Docker

Docker: Use Compose to Run Multi-Container Applications

- 05.07.26 - ErcanOPAK comment on Docker: Use Compose to Run Multi-Container Applications

🚀 One Command, All Containers App + database + cache = multiple containers. Docker Compose runs them all with one command. Define, run, stop. 📝 docker-compose.yml version: ‘3.8’ services: web: build: . ports: – “8000:8000” environment: – DB_HOST=database – DB_USER=postgres – DB_PASSWORD=postgres – DB_NAME=app depends_on: – database – redis networks: – app-network database: image: postgres:15 […]

Read More
Docker

Docker: Use Docker Compose for Multi-Container Apps

- 04.07.26 - ErcanOPAK comment on Docker: Use Docker Compose for Multi-Container Apps

🐳 One Command, All Containers Managing containers individually is painful. Docker Compose defines and runs multi-container apps. One YAML file, one command. 📝 Docker Compose File version: ‘3.8’ services: web: build: . ports: – “8080:8080” environment: – DB_HOST=postgres – REDIS_HOST=redis depends_on: – postgres – redis postgres: image: postgres:15 environment: POSTGRES_PASSWORD: secret volumes: – postgres_data:/var/lib/postgresql/data redis: […]

Read More
Docker

Docker: Use Docker Compose Networking for Multi-Container Apps

- 21.06.26 - ErcanOPAK comment on Docker: Use Docker Compose Networking for Multi-Container Apps

🌐 Containers Talk to Each Other Multiple containers need to communicate. Docker Compose networking makes it easy. Use service names as hostnames. 📝 Docker Compose Networking version: ‘3.8’ services: web: build: . ports: – “8080:8080” environment: – DB_HOST=postgres – REDIS_HOST=redis postgres: image: postgres:15 environment: POSTGRES_PASSWORD: secret redis: image: redis:alpine # Inside web container: # ping […]

Read More
November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Oct    

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (981)
  • How to add default value for Entity Framework migrations for DateTime and Bool (977)
  • Get the First and Last Word from a String or Sentence in SQL (858)
  • How to select distinct rows in a datatable in C# (854)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (653)
  • Add Constraint to SQL Table to ensure email contains @ (609)
  • Average of all values in a column that are not zero in SQL (570)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (547)
  • Find numbers with more than two decimal places in SQL (475)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit
  • SQL Server: Fix ROW_NUMBER Ties Reordering Between Identical Runs
  • C#: Fix an Enum HasFlag Returning True for the Zero Value
  • WordPress: Fix Featured Images Vanishing After a CDN Migration
  • Photoshop: Fix Content-Aware Fill Smearing a Repeating Pattern
  • Asp.Net Core: Fix Antiforgery Tokens Rejected Behind a Reverse Proxy

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (981)
  • How to add default value for Entity Framework migrations for DateTime and Bool (977)
  • Get the First and Last Word from a String or Sentence in SQL (858)
  • How to select distinct rows in a datatable in C# (854)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com