diff --git a/README.md b/README.md index 5c99d0e4..4d0c4bb1 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ services: crafty: container_name: crafty_container image: registry.gitlab.com/crafty-controller/crafty-4:latest + restart: always environment: - TZ=Etc/UTC ports: @@ -101,6 +102,8 @@ $ docker-compose up -d && docker-compose logs -f ```sh $ docker run \ --name crafty_container \ + --detach \ + --restart always \ -p 8000:8000 \ -p 8443:8443 \ -p 8123:8123 \ @@ -126,6 +129,8 @@ $ docker build . -t crafty $ docker run \ --name crafty_container \ + --detach \ + --restart always \ -p 8000:8000 \ -p 8443:8443 \ -p 8123:8123 \ diff --git a/docker-compose.yml.example b/docker-compose.yml.example index d2850e68..b8131735 100644 --- a/docker-compose.yml.example +++ b/docker-compose.yml.example @@ -5,6 +5,7 @@ services: crafty: container_name: crafty_container image: registry.gitlab.com/crafty-controller/crafty-4:latest + restart: always environment: - TZ=Etc/UTC ports: diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 59f7061e..731c7cea 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -5,6 +5,7 @@ services: crafty: container_name: crafty_container build: .. + restart: always environment: - TZ=Etc/UTC ports: