Ensure services restart after reboot

This commit is contained in:
xmrcheckout
2026-01-09 20:02:58 +00:00
parent 4db4b51fe9
commit 98d944ce0c
+10 -9
View File
@@ -14,7 +14,7 @@ services:
condition: service_started condition: service_started
api: api:
condition: service_started condition: service_started
restart: on-failure restart: unless-stopped
api: api:
build: build:
context: ./api context: ./api
@@ -39,7 +39,7 @@ services:
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy
restart: on-failure restart: unless-stopped
reconciler: reconciler:
build: build:
context: ./api context: ./api
@@ -61,7 +61,7 @@ services:
condition: service_started condition: service_started
db: db:
condition: service_healthy condition: service_healthy
restart: on-failure restart: unless-stopped
monerod: monerod:
build: build:
context: ./docker/monero context: ./docker/monero
@@ -91,7 +91,7 @@ services:
timeout: 5s timeout: 5s
retries: 10 retries: 10
start_period: 60s start_period: 60s
restart: on-failure restart: unless-stopped
profiles: ["local-daemon"] profiles: ["local-daemon"]
wallet-rpc-reconciler-1: wallet-rpc-reconciler-1:
build: build:
@@ -121,7 +121,7 @@ services:
] ]
volumes: volumes:
- ./wallets/reconciler:/wallets - ./wallets/reconciler:/wallets
restart: on-failure restart: unless-stopped
wallet-rpc-reconciler-2: wallet-rpc-reconciler-2:
build: build:
context: ./docker/monero context: ./docker/monero
@@ -150,7 +150,7 @@ services:
] ]
volumes: volumes:
- ./wallets/reconciler:/wallets - ./wallets/reconciler:/wallets
restart: on-failure restart: unless-stopped
wallet-rpc-reconciler-3: wallet-rpc-reconciler-3:
build: build:
context: ./docker/monero context: ./docker/monero
@@ -179,7 +179,7 @@ services:
] ]
volumes: volumes:
- ./wallets/reconciler:/wallets - ./wallets/reconciler:/wallets
restart: on-failure restart: unless-stopped
ui: ui:
build: build:
context: ./ui context: ./ui
@@ -190,7 +190,7 @@ services:
depends_on: depends_on:
api: api:
condition: service_started condition: service_started
restart: on-failure restart: unless-stopped
db: db:
image: postgres:16-alpine image: postgres:16-alpine
environment: environment:
@@ -199,6 +199,7 @@ services:
POSTGRES_DB: ${POSTGRES_DB} POSTGRES_DB: ${POSTGRES_DB}
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s interval: 5s
@@ -218,7 +219,7 @@ services:
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy
restart: on-failure restart: unless-stopped
profiles: ["db-backup"] profiles: ["db-backup"]
volumes: volumes:
postgres_data: postgres_data: