From 36689a60ac0a17b2e092bfad3e490952262705bb Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Sat, 12 Dec 2020 10:33:57 -0600 Subject: [PATCH 01/12] add PYTHONUSERBASE to path --- Dockerfile | 1 + test/compose.test.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8b7e293..e321f2f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,6 +75,7 @@ ENV CAMERA_DEV /dev/video0 ENV MJPG_STREAMER_INPUT -y -n -r 640x480 ENV PIP_USER true ENV PYTHONUSERBASE /octoprint/plugins +ENV PATH "${PYTHONUSERBASE}/bin:${PATH}" # set WORKDIR WORKDIR /octoprint diff --git a/test/compose.test.yml b/test/compose.test.yml index e6ca827..877a01a 100644 --- a/test/compose.test.yml +++ b/test/compose.test.yml @@ -5,7 +5,7 @@ services: build: context: ../ args: - octoprint_ref: 1.5.1 + octoprint_ref: 1.5.2 image: octoprint/octoprint:test ports: - 53333:80 From 7d8434fd28d58c478c5166f97e601d39c3dff3cf Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Sat, 12 Dec 2020 10:34:57 -0600 Subject: [PATCH 02/12] auto-detect and migrate >v3 dir structure --- root/etc/cont-init.d/v3-dir-structure-check | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 root/etc/cont-init.d/v3-dir-structure-check diff --git a/root/etc/cont-init.d/v3-dir-structure-check b/root/etc/cont-init.d/v3-dir-structure-check new file mode 100644 index 0000000..f7262c0 --- /dev/null +++ b/root/etc/cont-init.d/v3-dir-structure-check @@ -0,0 +1,8 @@ +#!/bin/sh + +[[ -d /octoprint/data ]] && \ + echo "Migrating to octoprint-docker v3 directory structure..." && \ + mv /octoprint/* /octoprint/octoprint && \ + mv /octoprint/octoprint/plugins/bin /octoprint/plugins && \ + mv /octoprint/octoprint/plugins/lib /octoprint/plugins && \ + echo "v3 octoprint-docker image migration complete!" From ec09b7ce7fef2d9a3cafa361960217643c84960a Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Sat, 12 Dec 2020 10:44:36 -0600 Subject: [PATCH 03/12] update migration script --- root/etc/cont-init.d/v3-dir-structure-check | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/root/etc/cont-init.d/v3-dir-structure-check b/root/etc/cont-init.d/v3-dir-structure-check index f7262c0..5f76602 100644 --- a/root/etc/cont-init.d/v3-dir-structure-check +++ b/root/etc/cont-init.d/v3-dir-structure-check @@ -1,8 +1,11 @@ -#!/bin/sh +#!/bin/bash -[[ -d /octoprint/data ]] && \ +if [[ -d /octoprint/data ]]; then echo "Migrating to octoprint-docker v3 directory structure..." && \ - mv /octoprint/* /octoprint/octoprint && \ - mv /octoprint/octoprint/plugins/bin /octoprint/plugins && \ - mv /octoprint/octoprint/plugins/lib /octoprint/plugins && \ + mv /octoprint/* /octoprint/octoprint + + [[ -d /octoprint/octoprint/plugins/bin ]] && mv /octoprint/octoprint/plugins/bin /octoprint/plugins + [[ -d /octoprint/octoprint/plugins/lib ]] && mv /octoprint/octoprint/plugins/lib /octoprint/plugins + echo "v3 octoprint-docker image migration complete!" +fi From f81c1098616202e5492b147667139375255b9f48 Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Sat, 12 Dec 2020 10:53:24 -0600 Subject: [PATCH 04/12] updates to v3 dir migration script --- root/etc/cont-init.d/v3-dir-structure-check | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/root/etc/cont-init.d/v3-dir-structure-check b/root/etc/cont-init.d/v3-dir-structure-check index 5f76602..2642340 100644 --- a/root/etc/cont-init.d/v3-dir-structure-check +++ b/root/etc/cont-init.d/v3-dir-structure-check @@ -1,11 +1,11 @@ -#!/bin/bash +#!/usr/bin/with-contenv bash -if [[ -d /octoprint/data ]]; then +if [[ -d "/octoprint/data" ]] || [[ -f "/octoprint/config.yaml" ]]; then echo "Migrating to octoprint-docker v3 directory structure..." && \ mv /octoprint/* /octoprint/octoprint - [[ -d /octoprint/octoprint/plugins/bin ]] && mv /octoprint/octoprint/plugins/bin /octoprint/plugins - [[ -d /octoprint/octoprint/plugins/lib ]] && mv /octoprint/octoprint/plugins/lib /octoprint/plugins + [[ -d "/octoprint/octoprint/plugins/bin" ]] && mv /octoprint/octoprint/plugins/bin $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/lib" ]] && mv /octoprint/octoprint/plugins/lib $PYTHONUSERBASE echo "v3 octoprint-docker image migration complete!" fi From f43f5815ab2278ce1706e6b9e608d301d917d334 Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Sat, 12 Dec 2020 11:26:12 -0600 Subject: [PATCH 05/12] add include,local,share to migrated dirs --- root/etc/cont-init.d/v3-dir-structure-check | 3 +++ 1 file changed, 3 insertions(+) diff --git a/root/etc/cont-init.d/v3-dir-structure-check b/root/etc/cont-init.d/v3-dir-structure-check index 2642340..59152b5 100644 --- a/root/etc/cont-init.d/v3-dir-structure-check +++ b/root/etc/cont-init.d/v3-dir-structure-check @@ -6,6 +6,9 @@ if [[ -d "/octoprint/data" ]] || [[ -f "/octoprint/config.yaml" ]]; then [[ -d "/octoprint/octoprint/plugins/bin" ]] && mv /octoprint/octoprint/plugins/bin $PYTHONUSERBASE [[ -d "/octoprint/octoprint/plugins/lib" ]] && mv /octoprint/octoprint/plugins/lib $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/include" ]] && mv /octoprint/octoprint/plugins/include $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/local" ]] && mv /octoprint/octoprint/plugins/local $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/share" ]] && mv /octoprint/octoprint/plugins/share $PYTHONUSERBASE echo "v3 octoprint-docker image migration complete!" fi From beffea93dd4851dd799756471159ef5480a3029b Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Sat, 12 Dec 2020 12:17:55 -0600 Subject: [PATCH 06/12] fix syntax error --- root/etc/cont-init.d/v3-dir-structure-check | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/root/etc/cont-init.d/v3-dir-structure-check b/root/etc/cont-init.d/v3-dir-structure-check index 59152b5..f2497a0 100644 --- a/root/etc/cont-init.d/v3-dir-structure-check +++ b/root/etc/cont-init.d/v3-dir-structure-check @@ -12,3 +12,17 @@ if [[ -d "/octoprint/data" ]] || [[ -f "/octoprint/config.yaml" ]]; then echo "v3 octoprint-docker image migration complete!" fi + +if [[ -d "/root/.octoprint" ]]; then + echo "octoprint-docker v1 directory structure detected, migrating to octoprint-docker v3 directory structure..." + + mv /root/.octoprint/* /octoprint/octoprint + + [[ -d "/octoprint/octoprint/plugins/bin" ]] && mv /octoprint/octoprint/plugins/bin $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/lib" ]] && mv /octoprint/octoprint/plugins/lib $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/include" ]] && mv /octoprint/octoprint/plugins/include $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/local" ]] && mv /octoprint/octoprint/plugins/local $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/share" ]] && mv /octoprint/octoprint/plugins/share $PYTHONUSERBASE + + echo "v3 octoprint-docker image migration complete!" +fi From 2694e1198d376b1ecaddbf989bc724d7f7358080 Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Sat, 12 Dec 2020 12:24:54 -0600 Subject: [PATCH 07/12] make sure target dirs exist --- root/etc/cont-init.d/v3-dir-structure-check | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/root/etc/cont-init.d/v3-dir-structure-check b/root/etc/cont-init.d/v3-dir-structure-check index f2497a0..b2f2685 100644 --- a/root/etc/cont-init.d/v3-dir-structure-check +++ b/root/etc/cont-init.d/v3-dir-structure-check @@ -2,6 +2,7 @@ if [[ -d "/octoprint/data" ]] || [[ -f "/octoprint/config.yaml" ]]; then echo "Migrating to octoprint-docker v3 directory structure..." && \ + mkdir -p /octoprint/octoprint /octoprint/plugins mv /octoprint/* /octoprint/octoprint [[ -d "/octoprint/octoprint/plugins/bin" ]] && mv /octoprint/octoprint/plugins/bin $PYTHONUSERBASE @@ -10,12 +11,13 @@ if [[ -d "/octoprint/data" ]] || [[ -f "/octoprint/config.yaml" ]]; then [[ -d "/octoprint/octoprint/plugins/local" ]] && mv /octoprint/octoprint/plugins/local $PYTHONUSERBASE [[ -d "/octoprint/octoprint/plugins/share" ]] && mv /octoprint/octoprint/plugins/share $PYTHONUSERBASE - echo "v3 octoprint-docker image migration complete!" + echo "v2 -> v3 octoprint-docker image migration complete!" fi if [[ -d "/root/.octoprint" ]]; then echo "octoprint-docker v1 directory structure detected, migrating to octoprint-docker v3 directory structure..." + mkdir -p /octoprint/octoprint /octoprint/plugins mv /root/.octoprint/* /octoprint/octoprint [[ -d "/octoprint/octoprint/plugins/bin" ]] && mv /octoprint/octoprint/plugins/bin $PYTHONUSERBASE @@ -24,5 +26,5 @@ if [[ -d "/root/.octoprint" ]]; then [[ -d "/octoprint/octoprint/plugins/local" ]] && mv /octoprint/octoprint/plugins/local $PYTHONUSERBASE [[ -d "/octoprint/octoprint/plugins/share" ]] && mv /octoprint/octoprint/plugins/share $PYTHONUSERBASE - echo "v3 octoprint-docker image migration complete!" + echo "v1 -> v3 octoprint-docker image migration complete!" fi From 3cf069dfa1b18f89ca3816646c5a816df9295c5d Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Sat, 12 Dec 2020 15:24:33 -0600 Subject: [PATCH 08/12] make AUTOMIGRATE optional --- root/etc/cont-init.d/v3-dir-structure-check | 61 +++++++++++---------- 1 file changed, 33 insertions(+), 28 deletions(-) diff --git a/root/etc/cont-init.d/v3-dir-structure-check b/root/etc/cont-init.d/v3-dir-structure-check index b2f2685..ed517da 100644 --- a/root/etc/cont-init.d/v3-dir-structure-check +++ b/root/etc/cont-init.d/v3-dir-structure-check @@ -1,30 +1,35 @@ #!/usr/bin/with-contenv bash -if [[ -d "/octoprint/data" ]] || [[ -f "/octoprint/config.yaml" ]]; then - echo "Migrating to octoprint-docker v3 directory structure..." && \ - mkdir -p /octoprint/octoprint /octoprint/plugins - mv /octoprint/* /octoprint/octoprint - - [[ -d "/octoprint/octoprint/plugins/bin" ]] && mv /octoprint/octoprint/plugins/bin $PYTHONUSERBASE - [[ -d "/octoprint/octoprint/plugins/lib" ]] && mv /octoprint/octoprint/plugins/lib $PYTHONUSERBASE - [[ -d "/octoprint/octoprint/plugins/include" ]] && mv /octoprint/octoprint/plugins/include $PYTHONUSERBASE - [[ -d "/octoprint/octoprint/plugins/local" ]] && mv /octoprint/octoprint/plugins/local $PYTHONUSERBASE - [[ -d "/octoprint/octoprint/plugins/share" ]] && mv /octoprint/octoprint/plugins/share $PYTHONUSERBASE - - echo "v2 -> v3 octoprint-docker image migration complete!" -fi - -if [[ -d "/root/.octoprint" ]]; then - echo "octoprint-docker v1 directory structure detected, migrating to octoprint-docker v3 directory structure..." - - mkdir -p /octoprint/octoprint /octoprint/plugins - mv /root/.octoprint/* /octoprint/octoprint - - [[ -d "/octoprint/octoprint/plugins/bin" ]] && mv /octoprint/octoprint/plugins/bin $PYTHONUSERBASE - [[ -d "/octoprint/octoprint/plugins/lib" ]] && mv /octoprint/octoprint/plugins/lib $PYTHONUSERBASE - [[ -d "/octoprint/octoprint/plugins/include" ]] && mv /octoprint/octoprint/plugins/include $PYTHONUSERBASE - [[ -d "/octoprint/octoprint/plugins/local" ]] && mv /octoprint/octoprint/plugins/local $PYTHONUSERBASE - [[ -d "/octoprint/octoprint/plugins/share" ]] && mv /octoprint/octoprint/plugins/share $PYTHONUSERBASE - - echo "v1 -> v3 octoprint-docker image migration complete!" -fi +: "${AUTOMIGRATE:=false}" + +if $AUTOMIGRATE; then + if [[ -d "/octoprint/data" ]] || [[ -f "/octoprint/config.yaml" ]]; then + echo "Migrating to octoprint-docker v3 directory structure..." && \ + mkdir -p /octoprint/octoprint /octoprint/plugins + mv /octoprint/* /octoprint/octoprint + + [[ -d "/octoprint/octoprint/plugins/bin" ]] && mv /octoprint/octoprint/plugins/bin $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/lib" ]] && mv /octoprint/octoprint/plugins/lib $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/include" ]] && mv /octoprint/octoprint/plugins/include $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/local" ]] && mv /octoprint/octoprint/plugins/local $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/share" ]] && mv /octoprint/octoprint/plugins/share $PYTHONUSERBASE + + echo "v2 -> v3 octoprint-docker image migration complete!" + fi + + if [[ -d "/root/.octoprint" ]]; then + echo "octoprint-docker v1 directory structure detected, migrating to octoprint-docker v3 directory structure..." + + mkdir -p /octoprint/octoprint /octoprint/plugins + mv /root/.octoprint/* /octoprint/octoprint + + [[ -d "/octoprint/octoprint/plugins/bin" ]] && mv /octoprint/octoprint/plugins/bin $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/lib" ]] && mv /octoprint/octoprint/plugins/lib $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/include" ]] && mv /octoprint/octoprint/plugins/include $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/local" ]] && mv /octoprint/octoprint/plugins/local $PYTHONUSERBASE + [[ -d "/octoprint/octoprint/plugins/share" ]] && mv /octoprint/octoprint/plugins/share $PYTHONUSERBASE + + echo "v1 -> v3 octoprint-docker image migration complete!" + fi + +fi \ No newline at end of file From 388c175587901478e183ad0e5ecac7027227f9a7 Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Sun, 13 Dec 2020 09:15:25 -0600 Subject: [PATCH 09/12] update README add instructions for env var add instructions about checking for releases --- README.md | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e64f5a6..8c1f74f 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,18 @@ This is the primary image of `octoprint/octoprint`. It is designed to work similarly, and support the same out of the box features as the octopi raspberry-pi machine image, using docker. +The `octoprint/octoprint` image uses semantic versioning, but the tags for `octoprint/octoprint` follow the +version of octoprint contained in the image. As a result we recommend you always check the [CHANGELOG](CHANGELOG.md) +or [Releases](https://github.com/OctoPrint/octoprint-docker/releases) before pulling an image, _even if you are pulling the same tag_. + +You can subscribe to be notified of releases as well, by selecting the Watch button in the upper right corner, +choosing "Custom", and checking "Releases". + +In addition, we know that OctoPrint is not the best suited type of application for containerization, but we're +working hard to make it as compatible as possible. Please check out our [Roadmap](https://github.com/OctoPrint/octoprint-docker/projects/4), +or join the discussion in the `#dev-docker` or `#support-docker` channels on the official OctoPrint Discord +[discord.octoprint.org](https://discord.octoprint.org). + **Tags** - `latest` - will always follow the latest _stable_ release @@ -57,11 +69,12 @@ There are configuration values that you pass using container `--environment` opt Listed below are the options and their defaults. These are implicit in example [docker-compose.yml](docker-compose.yml), and if you wish to change them, refer to the docker-compose docs on setting environment variables. -| variable | default | -| -------- | ------- | -| `CAMERA_DEV` | `/dev/video0` (see [note](#devices_note)) | -| `MJPG_STREAMER_INPUT` | `-y -n -r 640x480` | -| `ENABLE_MJPG_STREAMER` | `false` | +| variable | default | description | +| -------- | ------- | ----------- | +| `CAMERA_DEV` | `/dev/video0` | (see [note](#devices_note)) | +| `MJPG_STREAMER_INPUT` | `-y -n -r 640x480` | params for mjpg-streamer | +| `ENABLE_MJPG_STREAMER` | `false` | enable or disable mjpg-streamer +| `AUTOMIGRATE` | `false` | Will attempt to detect and migrate filesystems structures from previous versions of this image to be compatible with the latest release version. recommend you backup before trying this as this is a new feature that has been difficult to test fully | **note:** You will still need to declare the `device` mapping in your docker-compose file or docker command, even if you explicitly declare the `CAMERA_DEV`. The value of `CAMERA_DEV` is used in starting the mjpg-streamer From 6910490f8443b6bc380a4cbcc697655a58b77b70 Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Sun, 13 Dec 2020 09:43:28 -0600 Subject: [PATCH 10/12] update CHANGELOG with v3 migration notes --- CHANGELOG.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 120bc4a..ae744de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,15 @@ ### Breaking changes -PR #135 introduced a change that will not affect most users, but may be a breaking change for existing users that are using a volume mounting strategy other than the recommended strategy. Details follow: +PR #135 introduced a change that will not affect most users, but may be a breaking change for existing users that are using a volume mounting strategy other than the recommended strategy. -- `/octoprint/octoprint` and `/octoprint/plugins` folders are now explicitly created during docker build +We have introduced an optional environment variable you can set to attempt to automigrate the file structures, but this feature was impossible to test for all condidtions, and as such is +defaulted to `false`. We highly recommend you use the OctoPrint backup feature, or use this [docker based method of backing up your container volume][container-backup] before attempting auto-migration. +To attempt auto-migration, set a container environment variable of `AUTOMIGRATE=true`. + +Details of breaking changes follow: + +- `/octoprint/octoprint` and `/octoprint/plugins` folders are now explicitly created during docker build - octoprint service basedir is now `/octoprint/octoprint` (was previously `/octoprint`) - the recommended mount path for the `config-editor` container to has been changed to `octoprint:/octoprint`. See updated examples and usage info in `docker-compose.yml` and `README`. @@ -93,6 +99,8 @@ This new method will allow savvy users to create distinct volumes for plugin bin octoprint configuration data, giving them more ability to selectively control how state and memory consumption are utilized in their octoprint image usage/distribution strategies. +[container-backup]: https://docs.docker.com/storage/volumes/#backup-a-container + ## 2.0.0 ### BREAKING CHANGES From 619ab21b5e78a2a1765b8fa6d7701d11b211e1a6 Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Sun, 13 Dec 2020 09:47:58 -0600 Subject: [PATCH 11/12] improve auto-migration console messaging --- root/etc/cont-init.d/v3-dir-structure-check | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/root/etc/cont-init.d/v3-dir-structure-check b/root/etc/cont-init.d/v3-dir-structure-check index ed517da..3795154 100644 --- a/root/etc/cont-init.d/v3-dir-structure-check +++ b/root/etc/cont-init.d/v3-dir-structure-check @@ -3,8 +3,10 @@ : "${AUTOMIGRATE:=false}" if $AUTOMIGRATE; then + echo "AUTOMIGATE enabled...." if [[ -d "/octoprint/data" ]] || [[ -f "/octoprint/config.yaml" ]]; then - echo "Migrating to octoprint-docker v3 directory structure..." && \ + echo "octoprint-docker v2 directory structure detected...." + echo "migrating to octoprint-docker v3 directory structure..." mkdir -p /octoprint/octoprint /octoprint/plugins mv /octoprint/* /octoprint/octoprint @@ -14,11 +16,12 @@ if $AUTOMIGRATE; then [[ -d "/octoprint/octoprint/plugins/local" ]] && mv /octoprint/octoprint/plugins/local $PYTHONUSERBASE [[ -d "/octoprint/octoprint/plugins/share" ]] && mv /octoprint/octoprint/plugins/share $PYTHONUSERBASE - echo "v2 -> v3 octoprint-docker image migration complete!" + echo "v2 -> v3 octoprint-docker auto-migration migration complete!" fi if [[ -d "/root/.octoprint" ]]; then - echo "octoprint-docker v1 directory structure detected, migrating to octoprint-docker v3 directory structure..." + echo "octoprint-docker v1 directory structure detected...." + echo "migrating to octoprint-docker v3 directory structure..." mkdir -p /octoprint/octoprint /octoprint/plugins mv /root/.octoprint/* /octoprint/octoprint @@ -29,7 +32,7 @@ if $AUTOMIGRATE; then [[ -d "/octoprint/octoprint/plugins/local" ]] && mv /octoprint/octoprint/plugins/local $PYTHONUSERBASE [[ -d "/octoprint/octoprint/plugins/share" ]] && mv /octoprint/octoprint/plugins/share $PYTHONUSERBASE - echo "v1 -> v3 octoprint-docker image migration complete!" + echo "v1 -> v3 octoprint-docker auto-migration complete!" fi -fi \ No newline at end of file +fi From 65f6c6f49414f0b1429abc2a6d1f92f4aa60f93f Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Sun, 13 Dec 2020 09:51:31 -0600 Subject: [PATCH 12/12] test AUTOMIGRATE flag --- test/compose.test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/compose.test.yml b/test/compose.test.yml index 877a01a..c72aa44 100644 --- a/test/compose.test.yml +++ b/test/compose.test.yml @@ -11,6 +11,8 @@ services: - 53333:80 volumes: - octoprint:/octoprint + environment: + - AUTOMIGRATE=true config-editor: image: linuxserver/code-server