]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
docker: Add 'depends_on'
authorStephen Finucane <stephen@that.guru>
Thu, 26 Apr 2018 12:45:50 +0000 (13:45 +0100)
committerStephen Finucane <stephen@that.guru>
Thu, 26 Apr 2018 13:10:58 +0000 (14:10 +0100)
This is required now that we're no longer using links. Without it,
'docker-compose up' works but 'docker-compose run web' does not.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: 1590c21d ("docker-compose: Remove 'links' section")
docker-compose.yml

index 46c86766d2ba8dc6e447cc87f59d9143a46264a0..90b24c22edd84f81dcb10fe21a88b3cf693331dd 100644 (file)
@@ -15,6 +15,8 @@ services:
       dockerfile: ./tools/docker/Dockerfile
       args:
         - UID
+    depends_on:
+      - db
     command: python3 manage.py runserver 0.0.0.0:8000
     volumes:
       - .:/home/patchwork/patchwork/