Include service restart option

So crafty always starts on boot by example
This commit is contained in:
Iain Powrie 2022-04-15 15:29:59 +00:00
parent ef87ee5525
commit e7e15ea704
3 changed files with 7 additions and 0 deletions

View File

@ -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 \

View File

@ -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:

View File

@ -5,6 +5,7 @@ services:
crafty:
container_name: crafty_container
build: ..
restart: always
environment:
- TZ=Etc/UTC
ports: