Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
technical:docker-lab-basic [2026/09/11 21:06] – [4. Prove they can talk to each other by name (the bridge magic)] systemtechnical:docker-lab-basic [2026/09/11 21:09] (current) – [Useful cleanup / debug] system
Line 81: Line 81:
 </code> </code>
  
 +====== Same thing with docker-compose (cleaner) ======
 +  * Create docker-compose.yml:
 +<code yaml>
 +services:
 +  nginx-8000:
 +    image: nginx
 +    ports:
 +      - "8000:80"
 +    networks:
 +      - test-radiusdesk
 +
 +  nginx-8001:
 +    image: nginx
 +    ports:
 +      - "8001:80"
 +    networks:
 +      - test-radiusdesk
 +
 +networks:
 +  test-radiusdesk:
 +    driver: bridge
 +</code>
 +  * We can then bring it up with:
 +<code bash>
 +docker compose up -d
 +docker compose down
 +</code>
  
  • technical/docker-lab-basic.1789153584.txt.gz
  • Last modified: 2026/09/11 21:06
  • by system