mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-04 06:01:59 +08:00
Improve Docker examples
This commit is contained in:
parent
d08858346b
commit
2ae39f59fb
1 changed files with 17 additions and 0 deletions
17
README.md
17
README.md
|
@ -74,6 +74,9 @@ docker run -p 8080:8080 -p 8081:8081 --pull always -u $(id -u):$(id -g) -v $(pwd
|
||||||
# You can configure Livebook using environment variables,
|
# You can configure Livebook using environment variables,
|
||||||
# for all options see the dedicated "Environment variables" section below
|
# for all options see the dedicated "Environment variables" section below
|
||||||
docker run -p 8080:8080 -p 8081:8081 --pull always -e LIVEBOOK_PASSWORD="securesecret" ghcr.io/livebook-dev/livebook
|
docker run -p 8080:8080 -p 8081:8081 --pull always -e LIVEBOOK_PASSWORD="securesecret" ghcr.io/livebook-dev/livebook
|
||||||
|
|
||||||
|
# Or if you need to run on different ports:
|
||||||
|
docker run -p 8090:8090 -p 8091:8091 --pull always -e LIVEBOOK_PORT=8090 -e LIVEBOOK_IFRAME_PORT=8091 ghcr.io/livebook-dev/livebook
|
||||||
```
|
```
|
||||||
|
|
||||||
For CUDA support, [see images with the "cuda" tag](https://github.com/livebook-dev/livebook/pkgs/container/livebook).
|
For CUDA support, [see images with the "cuda" tag](https://github.com/livebook-dev/livebook/pkgs/container/livebook).
|
||||||
|
@ -82,6 +85,20 @@ To try out features from the main branch you can alternatively
|
||||||
use the `ghcr.io/livebook-dev/livebook:edge` image.
|
use the `ghcr.io/livebook-dev/livebook:edge` image.
|
||||||
See [Livebook images](https://github.com/livebook-dev/livebook/pkgs/container/livebook).
|
See [Livebook images](https://github.com/livebook-dev/livebook/pkgs/container/livebook).
|
||||||
|
|
||||||
|
If using Docker Compose the following template is a good starting point:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
services:
|
||||||
|
livebook:
|
||||||
|
image: ghcr.io/livebook-dev/livebook
|
||||||
|
ports:
|
||||||
|
- 8090:8090
|
||||||
|
- 8091:8091
|
||||||
|
environment:
|
||||||
|
- LIVEBOOK_PORT=8090
|
||||||
|
- LIVEBOOK_IFRAME_PORT=8091
|
||||||
|
```
|
||||||
|
|
||||||
### Embedded devices
|
### Embedded devices
|
||||||
|
|
||||||
If you want to run Livebook on embedded devices, such as Raspberry Pi, BeagleBone, etc.,
|
If you want to run Livebook on embedded devices, such as Raspberry Pi, BeagleBone, etc.,
|
||||||
|
|
Loading…
Reference in a new issue