Create separete dockerfiles for services

This commit is contained in:
Manuel Thalmann 2019-04-15 13:18:46 +02:00
parent 39009e7f22
commit 7e262e8fce
3 changed files with 5 additions and 2 deletions

1
db.Dockerfile Normal file
View file

@ -0,0 +1 @@
FROM mysql:5

View file

@ -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: