From b6d50168800e4132643a2e6d8c91566b329411fd Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Wed, 5 Apr 2023 13:46:17 -0400 Subject: [PATCH] infra: ensure containers restart if docker restarts --- services/monolith/docker-compose.yml | 1 + services/traefik/docker-compose.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/services/monolith/docker-compose.yml b/services/monolith/docker-compose.yml index bafa065..ffe7b5c 100644 --- a/services/monolith/docker-compose.yml +++ b/services/monolith/docker-compose.yml @@ -2,6 +2,7 @@ version: "3.7" services: monolith: + restart: always build: . ports: - "8000:8000" diff --git a/services/traefik/docker-compose.yml b/services/traefik/docker-compose.yml index abe226e..e8fcc2b 100644 --- a/services/traefik/docker-compose.yml +++ b/services/traefik/docker-compose.yml @@ -2,6 +2,7 @@ version: '3.7' services: traefik: + restart: always image: traefik:v2.9 ports: - "80:80"