You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
486 B
INI
17 lines
486 B
INI
3 weeks ago
|
[Unit]
|
||
|
Description=Jupyterlab Notebook Service
|
||
|
Requires=docker.service
|
||
|
After=docker.service
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
RemainAfterExit=yes
|
||
|
WorkingDirectory=/opt/jupyterlab
|
||
|
ExecStartPre=/bin/sh -c 'echo JUPYTERLAB_HOSTNAME=$(hostname) > /opt/jupyterlab/.env'
|
||
|
ExecStart=docker compose --env-file /opt/jupyterlab/.env -f /opt/jupyterlab/docker-compose-jupyterlab.yaml up -d
|
||
|
ExecStop=docker compose -f /opt/jupyterlab/docker-compose-jupyterlab.yaml down
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|