Merge branch '5739-dockerRefactor' of https://gitea.verdnatura.es/verdnatura/salix into 5739-dockerRefactor

This commit is contained in:
Alex Moreno 2023-11-15 13:37:05 +01:00
commit db363d8b88
4 changed files with 38 additions and 1 deletions

View File

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

34
docker-compose.local.yml Normal file
View File

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

View File

@ -7,7 +7,7 @@
"connector": "vn-mysql",
"database": "vn",
"debug": false,
"host": "localhost",
"host": "db",
"port": "3306",
"username": "root",
"password": "root",

2
start-salix.sh Normal file
View File

@ -0,0 +1,2 @@
gulp build
docker-compose -f "docker-compose.local.yml" up --build