add-container
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| add-container [2025/05/25 19:53] – lucasrufkahr | add-container [2025/05/25 20:01] (current) – [Create SCSI disk] lucasrufkahr | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| - Add > Hard Disk | - Add > Hard Disk | ||
| * Bus/Device: SCSI | * Bus/Device: SCSI | ||
| - | * Storage: | + | * Storage: |
| * Disk size: Depends on use | * Disk size: Depends on use | ||
| - Click Add | - Click Add | ||
| Line 30: | Line 30: | ||
| ===== Setup compose file ===== | ===== Setup compose file ===== | ||
| - | - Make folder to contain docker compose files | + | - Make folder to contain docker compose files in / |
| - | - Add docker compose file to / | + | - Add docker compose file to / |
| + | * This can be created manually or downloaded from a project page online. | ||
| - Add following entries to docker-compose.yml: | - Add following entries to docker-compose.yml: | ||
| ==== Inside service section ==== | ==== Inside service section ==== | ||
| - | < | + | Required for posterity. |
| + | |||
| + | * < | ||
| container_name: | container_name: | ||
| Line 42: | Line 45: | ||
| </ | </ | ||
| - | < | + | This will restart your container on a server reboot. |
| + | |||
| + | * < | ||
| restart: unless-stopped | restart: unless-stopped | ||
| Line 50: | Line 55: | ||
| === Make sure you set any volumes that your container requires to the disk you created earlier! === | === Make sure you set any volumes that your container requires to the disk you created earlier! === | ||
| - | < | + | * < |
| volumes: | volumes: | ||
| Line 58: | Line 63: | ||
| </ | </ | ||
| - | < | + | Required to reach your container via DNS and will enable TLS. |
| + | |||
| + | * < | ||
| labels: | labels: | ||
| Line 69: | Line 76: | ||
| </ | </ | ||
| - | < | + | Required for traefik to route to your container. |
| + | |||
| + | * < | ||
| networks: | networks: | ||
| Line 79: | Line 88: | ||
| ==== Outside the service section ==== | ==== Outside the service section ==== | ||
| - | < | + | Required for docker to create networks. |
| + | |||
| + | * < | ||
| networks: | networks: | ||
add-container.1748220789.txt.gz · Last modified: by lucasrufkahr
