Add 'restart: always' to Compose examples.
This commit is contained in:
parent
b1f8319824
commit
1c399f373a
3 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,7 @@ version: '3.8'
|
||||||
services:
|
services:
|
||||||
timescaledb:
|
timescaledb:
|
||||||
image: timescale/timescaledb:latest-pg16
|
image: timescale/timescaledb:latest-pg16
|
||||||
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: ${PG_USER}
|
POSTGRES_USER: ${PG_USER}
|
||||||
POSTGRES_PASSWORD: ${PG_PASSWORD}
|
POSTGRES_PASSWORD: ${PG_PASSWORD}
|
||||||
|
@ -22,6 +23,7 @@ services:
|
||||||
|
|
||||||
opendtu-logger:
|
opendtu-logger:
|
||||||
image: git.hollander.online/energy/opendtu-logger:main
|
image: git.hollander.online/energy/opendtu-logger:main
|
||||||
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
DB_URL: ${DB_URL}
|
DB_URL: ${DB_URL}
|
||||||
REMOTE_URL: ${REMOTE_URL}
|
REMOTE_URL: ${REMOTE_URL}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
services:
|
services:
|
||||||
timescaledb:
|
timescaledb:
|
||||||
|
restart: always
|
||||||
image: timescale/timescaledb:latest-pg16
|
image: timescale/timescaledb:latest-pg16
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: ${PG_USER}
|
POSTGRES_USER: ${PG_USER}
|
||||||
|
@ -21,6 +22,7 @@ services:
|
||||||
retries: 20
|
retries: 20
|
||||||
|
|
||||||
opendtu-logger:
|
opendtu-logger:
|
||||||
|
restart: always
|
||||||
image: git.hollander.online/energy/opendtu-logger:main
|
image: git.hollander.online/energy/opendtu-logger:main
|
||||||
environment:
|
environment:
|
||||||
DB_URL: ${DB_URL}
|
DB_URL: ${DB_URL}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
services:
|
services:
|
||||||
opendtu-logger:
|
opendtu-logger:
|
||||||
|
restart: always
|
||||||
image: git.hollander.online/energy/opendtu-logger:main
|
image: git.hollander.online/energy/opendtu-logger:main
|
||||||
environment:
|
environment:
|
||||||
DB_URL: ${DB_URL}
|
DB_URL: ${DB_URL}
|
||||||
|
|
Loading…
Reference in a new issue