2023-11-15 12:36:00 +00:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
2023-12-21 14:29:47 +00:00
|
|
|
# node_modules:
|
|
|
|
# image: node:20-bullseye-slim
|
|
|
|
# command: npm install --ci
|
|
|
|
# user: "${UID}:${GID}"
|
|
|
|
# working_dir: /salix
|
|
|
|
# volumes:
|
|
|
|
# - .:/salix
|
2023-11-15 12:36:00 +00:00
|
|
|
db:
|
2023-12-21 14:29:47 +00:00
|
|
|
image: db
|
2023-12-19 14:32:39 +00:00
|
|
|
restart: unless-stopped
|
2023-11-15 12:36:00 +00:00
|
|
|
build:
|
|
|
|
context: db
|
|
|
|
dockerfile: Dockerfile
|
2023-12-19 14:32:39 +00:00
|
|
|
ports:
|
|
|
|
- 3306:3306
|
2023-11-15 14:47:59 +00:00
|
|
|
front:
|
2023-12-21 14:29:47 +00:00
|
|
|
image: front
|
2023-12-13 14:32:06 +00:00
|
|
|
restart: unless-stopped
|
2023-11-15 14:47:59 +00:00
|
|
|
build:
|
|
|
|
context: .
|
2023-11-24 14:12:35 +00:00
|
|
|
dockerfile: front/Dockerfile.local
|
2023-11-15 12:36:00 +00:00
|
|
|
ports:
|
2023-11-24 14:12:35 +00:00
|
|
|
- 5000:5000
|
|
|
|
depends_on:
|
|
|
|
- back
|
2023-12-13 14:32:06 +00:00
|
|
|
volumes:
|
|
|
|
- ./modules:/salix/modules
|
|
|
|
- ./dist:/salix/dist
|
|
|
|
- ./front:/salix/front
|
|
|
|
- ./loopback:/salix/loopback
|
2023-12-19 14:32:39 +00:00
|
|
|
|
2023-11-15 12:36:00 +00:00
|
|
|
back:
|
2023-12-21 14:29:47 +00:00
|
|
|
image: back
|
2023-12-13 14:32:06 +00:00
|
|
|
restart: unless-stopped
|
2023-11-15 12:36:00 +00:00
|
|
|
build:
|
|
|
|
context: .
|
2023-12-21 14:29:47 +00:00
|
|
|
dockerfile: back/Dockerfile
|
|
|
|
target: local
|
2023-11-15 12:36:00 +00:00
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
environment:
|
|
|
|
- NODE_ENV
|
2023-11-15 14:47:59 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
2023-12-21 14:29:47 +00:00
|
|
|
# - node_modules
|
2023-12-13 14:32:06 +00:00
|
|
|
volumes:
|
|
|
|
- ./loopback:/salix/loopback
|
|
|
|
- ./storage:/salix/storage
|
|
|
|
- ./modules:/salix/modules
|
|
|
|
- ./back:/salix/back
|
2023-12-21 14:29:47 +00:00
|
|
|
# - ./node_modules:/salix/node_modules
|
|
|
|
# - ./print:/salix/print
|
2023-12-19 14:32:39 +00:00
|
|
|
|
2023-11-15 12:36:00 +00:00
|
|
|
networks:
|
|
|
|
salix-stack-network:
|
2023-11-15 14:47:59 +00:00
|
|
|
driver: host
|
2023-12-13 14:32:06 +00:00
|
|
|
|