WIP: 5739-dockerRefactor #1822

Draft
alexm wants to merge 67 commits from 5739-dockerRefactor into dev
4 changed files with 38 additions and 1 deletions
Showing only changes of commit 0167a55f61 - Show all commits

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