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:
|
crafty:
|
||||||
container_name: crafty_container
|
container_name: crafty_container
|
||||||
image: registry.gitlab.com/crafty-controller/crafty-4:latest
|
image: registry.gitlab.com/crafty-controller/crafty-4:latest
|
||||||
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- TZ=Etc/UTC
|
- TZ=Etc/UTC
|
||||||
ports:
|
ports:
|
||||||
@ -101,6 +102,8 @@ $ docker-compose up -d && docker-compose logs -f
|
|||||||
```sh
|
```sh
|
||||||
$ docker run \
|
$ docker run \
|
||||||
--name crafty_container \
|
--name crafty_container \
|
||||||
|
--detach \
|
||||||
|
--restart always \
|
||||||
-p 8000:8000 \
|
-p 8000:8000 \
|
||||||
-p 8443:8443 \
|
-p 8443:8443 \
|
||||||
-p 8123:8123 \
|
-p 8123:8123 \
|
||||||
@ -126,6 +129,8 @@ $ docker build . -t crafty
|
|||||||
|
|
||||||
$ docker run \
|
$ docker run \
|
||||||
--name crafty_container \
|
--name crafty_container \
|
||||||
|
--detach \
|
||||||
|
--restart always \
|
||||||
-p 8000:8000 \
|
-p 8000:8000 \
|
||||||
-p 8443:8443 \
|
-p 8443:8443 \
|
||||||
-p 8123:8123 \
|
-p 8123:8123 \
|
||||||
|
@ -5,6 +5,7 @@ services:
|
|||||||
crafty:
|
crafty:
|
||||||
container_name: crafty_container
|
container_name: crafty_container
|
||||||
image: registry.gitlab.com/crafty-controller/crafty-4:latest
|
image: registry.gitlab.com/crafty-controller/crafty-4:latest
|
||||||
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- TZ=Etc/UTC
|
- TZ=Etc/UTC
|
||||||
ports:
|
ports:
|
||||||
|
@ -5,6 +5,7 @@ services:
|
|||||||
crafty:
|
crafty:
|
||||||
container_name: crafty_container
|
container_name: crafty_container
|
||||||
build: ..
|
build: ..
|
||||||
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- TZ=Etc/UTC
|
- TZ=Etc/UTC
|
||||||
ports:
|
ports:
|
||||||
|
Loading…
Reference in New Issue
Block a user