add "--restart always" to postgres, webapp and email_handler

This commit is contained in:
Son NK 2020-01-31 21:45:21 +07:00
parent 98fd940b02
commit 49b9167de4
1 changed files with 3 additions and 0 deletions

View File

@ -285,6 +285,7 @@ sudo docker run -d \
-e POSTGRES_USER=myuser \
-e POSTGRES_DB=simplelogin \
-p 5432:5432 \
--restart always \
--network="sl-network" \
postgres:12.1
```
@ -476,6 +477,7 @@ sudo docker run -d \
-v $(pwd)/dkim.key:/dkim.key \
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
-p 7777:7777 \
--restart always \
--network="sl-network" \
simplelogin/app:1.0.3
```
@ -489,6 +491,7 @@ sudo docker run -d \
-v $(pwd)/dkim.key:/dkim.key \
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
-p 20381:20381 \
--restart always \
--network="sl-network" \
simplelogin/app:1.0.3 python email_handler.py
```