mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Include service restart option
So crafty always starts on boot by example
This commit is contained in:
parent
ef87ee5525
commit
e7e15ea704
@ -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 \
|
||||
|
@ -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:
|
||||
|
@ -5,6 +5,7 @@ services:
|
||||
crafty:
|
||||
container_name: crafty_container
|
||||
build: ..
|
||||
restart: always
|
||||
environment:
|
||||
- TZ=Etc/UTC
|
||||
ports:
|
||||
|
Loading…
Reference in New Issue
Block a user