From 7e262e8fce2d7d214ae2e7603167c4496a0cdbcf Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 15 Apr 2019 13:18:46 +0200 Subject: [PATCH] Create separete dockerfiles for services --- Dockerfile => cms.Dockerfile | 0 db.Dockerfile | 1 + docker-compose.yml | 6 ++++-- 3 files changed, 5 insertions(+), 2 deletions(-) rename Dockerfile => cms.Dockerfile (100%) create mode 100644 db.Dockerfile diff --git a/Dockerfile b/cms.Dockerfile similarity index 100% rename from Dockerfile rename to cms.Dockerfile diff --git a/db.Dockerfile b/db.Dockerfile new file mode 100644 index 0000000..9aa8124 --- /dev/null +++ b/db.Dockerfile @@ -0,0 +1 @@ +FROM mysql:5 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 053694d..8b6e01b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: cms: build: context: . - dockerfile: ./Dockerfile + dockerfile: ./cms.Dockerfile networks: - nuth ports: @@ -14,7 +14,9 @@ services: depends_on: - db db: - image: mysql:5 + build: + context: . + dockerfile: ./db.Dockerfile networks: - nuth ports: