[odrs-web/readme-update: 21/22] Restart db and nginx unless stopped in docker-compose
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [odrs-web/readme-update: 21/22] Restart db and nginx unless stopped in docker-compose
 
- Date: Fri,  3 Jun 2022 11:36:34 +0000 (UTC)
 
commit 5c3b5ae96d96df30717cd2efb4ea3f6cbae32856
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Fri Jun 3 13:17:19 2022 +0200
    Restart db and nginx unless stopped in docker-compose
    
    Otherwise there's a race condition between all services, resulting
    in nginx not starting correctly.
 docker-compose.yml | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/docker-compose.yml b/docker-compose.yml
index da45d50..c958b07 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -24,6 +24,7 @@ services:
 
   db:
     image: docker.io/library/mariadb:10.2
+    restart: unless-stopped
     ports:
       - "3306:3306"
     environment:
@@ -34,6 +35,7 @@ services:
 
   nginx:
     image: docker.io/nginxinc/nginx-unprivileged:latest
+    restart: unless-stopped
     volumes:
       - ./nginx.conf:/etc/nginx/nginx.conf
       - ratings:/tmp/ratings
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]