Skip to content

Commit

Permalink
Merge pull request #366 from stakwork/fix/restart-policy
Browse files Browse the repository at this point in the history
Fix/restart policy
  • Loading branch information
Evanfeenstra authored Oct 23, 2024
2 parents 5910544 + afe710d commit 177ef92
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
reverse-proxy:
image: traefik:v2.2.1
container_name: traefik.sphinx
restart: on-failure
restart: unless-stopped
networks:
- sphinx-swarm
command:
Expand Down Expand Up @@ -61,7 +61,7 @@ services:
- "traefik.http.routers.elements.tls=true"
- "traefik.http.routers.elements.tls.certresolver=myresolver"
- "traefik.http.routers.elements.entrypoints=websecure"
restart: on-failure
restart: unless-stopped
environment:
- HOST=$HOST # subdomain e.g. swarmx.sphinx.chat
- DOCKER_RUN=true # client use sphinx-swarm network
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ services:
load_balancer:
image: traefik:v2.2.1
container_name: load_balancer
restart: on-failure
restart: unless-stopped
networks:
- sphinx-swarm
command:
Expand Down Expand Up @@ -59,7 +59,7 @@ services:
- "traefik.http.routers.elements.tls=true"
- "traefik.http.routers.elements.tls.certresolver=myresolver"
- "traefik.http.routers.elements.entrypoints=websecure"
restart: on-failure
restart: unless-stopped
deploy:
resources:
limits:
Expand Down
4 changes: 2 additions & 2 deletions second-brain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
load_balancer:
image: traefik:v2.2.1
container_name: load_balancer
restart: on-failure
restart: unless-stopped
networks:
- sphinx-swarm
command:
Expand Down Expand Up @@ -63,7 +63,7 @@ services:
- "traefik.http.routers.elements.tls=true"
- "traefik.http.routers.elements.tls.certresolver=myresolver"
- "traefik.http.routers.elements.entrypoints=websecure"
restart: on-failure
restart: unless-stopped
environment:
- HOST=$HOST # subdomain e.g. swarmx.sphinx.chat
- DOCKER_RUN=true # client use sphinx-swarm network
Expand Down
4 changes: 2 additions & 2 deletions sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
reverse-proxy:
image: traefik:v2.2.1
container_name: traefik.sphinx
restart: on-failure
restart: unless-stopped
networks:
- sphinx-swarm
command:
Expand Down Expand Up @@ -63,7 +63,7 @@ services:
- "traefik.http.routers.elements.tls=true"
- "traefik.http.routers.elements.tls.certresolver=myresolver"
- "traefik.http.routers.elements.entrypoints=websecure"
restart: on-failure
restart: unless-stopped
environment:
- HOST=$HOST # subdomain e.g. swarmx.sphinx.chat
- DOCKER_RUN=true # client use sphinx-swarm network
Expand Down
4 changes: 2 additions & 2 deletions sphinxv2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
reverse-proxy:
image: traefik:v2.2.1
container_name: traefik.sphinx
restart: on-failure
restart: unless-stopped
networks:
- sphinx-swarm
command:
Expand Down Expand Up @@ -63,7 +63,7 @@ services:
- "traefik.http.routers.elements.tls=true"
- "traefik.http.routers.elements.tls.certresolver=myresolver"
- "traefik.http.routers.elements.entrypoints=websecure"
restart: on-failure
restart: unless-stopped
environment:
- HOST=$HOST # subdomain e.g. swarmx.sphinx.chat
- DOCKER_RUN=true # client use sphinx-swarm network
Expand Down
2 changes: 1 addition & 1 deletion src/bin/btc_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: "3"
services:
bitcoind:
image: lncm/bitcoind:v23.0
restart: on-failure
restart: unless-stopped
container_name: bitcoind.test
volumes:
- bitcoind.test:/data/.bitcoin
Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn host_config(
extra_hosts: extra_hosts(),
network_mode: Some(dock::DEFAULT_NETWORK.to_string()),
restart_policy: Some(RestartPolicy {
name: Some(RestartPolicyNameEnum::ON_FAILURE),
name: Some(RestartPolicyNameEnum::UNLESS_STOPPED),
maximum_retry_count: None,
}),
log_config: local_log_config(),
Expand Down
4 changes: 2 additions & 2 deletions superadmin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
load_balancer:
image: traefik:v2.2.1
container_name: load_balancer
restart: on-failure
restart: unless-stopped
networks:
- sphinx-swarm
command:
Expand Down Expand Up @@ -61,7 +61,7 @@ services:
- "traefik.http.routers.elements.tls=true"
- "traefik.http.routers.elements.tls.certresolver=myresolver"
- "traefik.http.routers.elements.entrypoints=websecure"
restart: on-failure
restart: unless-stopped
environment:
- DOCKER_RUN=true
- ROCKET_ADDRESS=0.0.0.0
Expand Down

0 comments on commit 177ef92

Please sign in to comment.