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:
|
cms:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./Dockerfile
|
dockerfile: ./cms.Dockerfile
|
||||||
networks:
|
networks:
|
||||||
- nuth
|
- nuth
|
||||||
ports:
|
ports:
|
||||||
|
@ -14,7 +14,9 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
db:
|
db:
|
||||||
image: mysql:5
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./db.Dockerfile
|
||||||
networks:
|
networks:
|
||||||
- nuth
|
- nuth
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in a new issue