62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
version: "3.7"
|
|
services:
|
|
# node_modules:
|
|
# image: node:20-bullseye-slim
|
|
# command: sh -c "npm i gulp-cli && npm install --ci && npx gulp i"
|
|
# user: "${UID}:${GID}"
|
|
# working_dir: /salix
|
|
# volumes:
|
|
# - .:/salix
|
|
db:
|
|
image: db:local
|
|
restart: unless-stopped
|
|
build:
|
|
context: db
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- 3306:3306
|
|
front:
|
|
image: front
|
|
command: ["npx", "gulp", "front"]
|
|
restart: unless-stopped
|
|
build:
|
|
context: .
|
|
dockerfile: front/Dockerfile.local
|
|
ports:
|
|
- 5000:5000
|
|
depends_on:
|
|
- back
|
|
volumes:
|
|
- ./modules:/salix/modules
|
|
- ./dist:/salix/dist
|
|
- ./front:/salix/front
|
|
- ./loopback:/salix/loopback
|
|
- ./node_modules:/salix/node_modules
|
|
back:
|
|
image: back
|
|
command: ["npx", "gulp", "backWatch"]
|
|
restart: unless-stopped
|
|
build:
|
|
context: .
|
|
dockerfile: back/Dockerfile
|
|
target: local
|
|
ports:
|
|
- 3000:3000
|
|
environment:
|
|
- NODE_ENV
|
|
depends_on:
|
|
- db
|
|
# - node_modules
|
|
volumes:
|
|
- ./loopback:/salix/loopback
|
|
- ./storage:/salix/storage
|
|
- ./modules:/salix/modules
|
|
- ./back:/salix/back
|
|
- ./node_modules:/salix/node_modules
|
|
- ./print:/salix/print
|
|
|
|
networks:
|
|
salix-stack-network:
|
|
driver: host
|
|
|