Differences
This shows you the differences between two versions of the page.
| 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)] system | technical:docker-lab-basic [2026/09/11 21:09] (current) – [Useful cleanup / debug] system | ||
|---|---|---|---|
| Line 81: | Line 81: | ||
| </ | </ | ||
| + | ====== Same thing with docker-compose (cleaner) ====== | ||
| + | * Create docker-compose.yml: | ||
| + | <code yaml> | ||
| + | services: | ||
| + | nginx-8000: | ||
| + | image: nginx | ||
| + | ports: | ||
| + | - " | ||
| + | networks: | ||
| + | - test-radiusdesk | ||
| + | |||
| + | nginx-8001: | ||
| + | image: nginx | ||
| + | ports: | ||
| + | - " | ||
| + | networks: | ||
| + | - test-radiusdesk | ||
| + | |||
| + | networks: | ||
| + | test-radiusdesk: | ||
| + | driver: bridge | ||
| + | </ | ||
| + | * We can then bring it up with: | ||
| + | <code bash> | ||
| + | docker compose up -d | ||
| + | docker compose down | ||
| + | </ | ||