Merge branch 'devops/correct-docker-examples' into 'dev'

Correct docker documentation to include restart

See merge request crafty-controller/crafty-4!253
This commit is contained in:
Iain Powrie 2022-04-15 15:36:31 +00:00
commit dfd26e4523
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: