Create separete dockerfiles for services
This commit is contained in:
parent
39009e7f22
commit
7e262e8fce
1
db.Dockerfile
Normal file
1
db.Dockerfile
Normal file
|
@ -0,0 +1 @@
|
|||
FROM mysql:5
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue