From fe7be00166bf402a3af2250885b7add4b697d9e8 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Tue, 27 Dec 2016 15:23:58 +0100 Subject: [PATCH] Add container_name for docker services Comment out automatic restart, which is more useful in a production context --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index d7801bed..dc6bc4e7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,9 @@ version: '2' services: todolist: + container_name: todolist image: todolist - restart: always + # restart: always env_file: .env command: gunicorn todolist:app -w 2 -b :8000 ports: @@ -11,6 +12,7 @@ services: - migration migration: + container_name: migration build: . image: todolist env_file: .env