Merge branch '5739-dockerRefactor' of https://gitea.verdnatura.es/verdnatura/salix into 5739-dockerRefactor
This commit is contained in:
commit
db363d8b88
|
@ -33,6 +33,7 @@ COPY loopback/package.json loopback/
|
|||
RUN npm install --omit=dev
|
||||
|
||||
COPY loopback loopback
|
||||
COPY storage storage
|
||||
COPY back back
|
||||
COPY modules modules
|
||||
COPY print print
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
version: "3.7"
|
||||
services:
|
||||
db:
|
||||
image: salix-db
|
||||
build:
|
||||
context: db
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- 3306:3306
|
||||
networks:
|
||||
- salix-stack-network
|
||||
back:
|
||||
image: salix-back
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
networks:
|
||||
- salix-stack-network
|
||||
ports:
|
||||
- 3000:3000
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
- NODE_ENV
|
||||
front:
|
||||
image: front
|
||||
build:
|
||||
context: .
|
||||
dockerfile: front/Dockerfile
|
||||
ports:
|
||||
- 5000:80
|
||||
|
||||
networks:
|
||||
salix-stack-network:
|
|
@ -7,7 +7,7 @@
|
|||
"connector": "vn-mysql",
|
||||
"database": "vn",
|
||||
"debug": false,
|
||||
"host": "localhost",
|
||||
"host": "db",
|
||||
"port": "3306",
|
||||
"username": "root",
|
||||
"password": "root",
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
gulp build
|
||||
docker-compose -f "docker-compose.local.yml" up --build
|
Loading…
Reference in New Issue