mirror of
https://github.com/netbootxyz/docker-netbootxyz.git
synced 2025-08-08 07:07:29 +02:00
Merge pull request #5 from fawaf/master
add example docker-compose file
This commit is contained in:
commit
e60776543d
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
go.sh
|
go.sh
|
||||||
|
docker-compose.yml
|
||||||
|
21
README.md
21
README.md
@ -50,24 +50,9 @@ Start the container with the same parameters used above. If the same folders are
|
|||||||
|
|
||||||
### docker-compose
|
### docker-compose
|
||||||
|
|
||||||
```yaml
|
1. Copy docker-compose.yml.example to docker-compose.yml
|
||||||
---
|
1. Edit as needed
|
||||||
version: "2.1"
|
1. Run `docker-compose up -d netbootxyz` to start containers in the background
|
||||||
services:
|
|
||||||
netbootxyz:
|
|
||||||
image: ghcr.io/netbootxyz/netbootxyz
|
|
||||||
container_name: netbootxyz
|
|
||||||
environment:
|
|
||||||
- MENU_VERSION=2.0.47 # optional
|
|
||||||
volumes:
|
|
||||||
- /path/to/config:/config # optional
|
|
||||||
- /path/to/assets:/assets # optional
|
|
||||||
ports:
|
|
||||||
- 3000:3000
|
|
||||||
- 69:69/udp
|
|
||||||
- 8080:80 #optional
|
|
||||||
restart: unless-stopped
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Updating the image with docker-compose
|
#### Updating the image with docker-compose
|
||||||
|
|
||||||
|
16
docker-compose.yml.example
Normal file
16
docker-compose.yml.example
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
version: "2.1"
|
||||||
|
services:
|
||||||
|
netbootxyz:
|
||||||
|
image: ghcr.io/netbootxyz/netbootxyz
|
||||||
|
container_name: netbootxyz
|
||||||
|
environment:
|
||||||
|
- MENU_VERSION=2.0.47 # optional
|
||||||
|
volumes:
|
||||||
|
- /path/to/config:/config # optional
|
||||||
|
- /path/to/assets:/assets # optional
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
- 69:69/udp
|
||||||
|
- 8080:80 #optional
|
||||||
|
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user