Add 'restart: always' to Compose examples.

This commit is contained in:
Pieter Hollander 2024-03-27 10:19:09 +01:00
parent b1f8319824
commit 1c399f373a
Signed by: pieter
SSH key fingerprint: SHA256:HbX+9cBXsop9SuvL+mELd29sK+7DehFfdVweFVDtMSg
3 changed files with 5 additions and 0 deletions

View file

@ -2,6 +2,7 @@ version: '3.8'
services:
timescaledb:
image: timescale/timescaledb:latest-pg16
restart: always
environment:
POSTGRES_USER: ${PG_USER}
POSTGRES_PASSWORD: ${PG_PASSWORD}
@ -22,6 +23,7 @@ services:
opendtu-logger:
image: git.hollander.online/energy/opendtu-logger:main
restart: always
environment:
DB_URL: ${DB_URL}
REMOTE_URL: ${REMOTE_URL}

View file

@ -1,6 +1,7 @@
version: '3.8'
services:
timescaledb:
restart: always
image: timescale/timescaledb:latest-pg16
environment:
POSTGRES_USER: ${PG_USER}
@ -21,6 +22,7 @@ services:
retries: 20
opendtu-logger:
restart: always
image: git.hollander.online/energy/opendtu-logger:main
environment:
DB_URL: ${DB_URL}

View file

@ -1,6 +1,7 @@
version: '3.8'
services:
opendtu-logger:
restart: always
image: git.hollander.online/energy/opendtu-logger:main
environment:
DB_URL: ${DB_URL}