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: