2023-11-15 12:36:00 +00:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: salix-db
|
|
|
|
build:
|
|
|
|
context: db
|
|
|
|
dockerfile: Dockerfile
|
2023-11-15 14:47:59 +00:00
|
|
|
front:
|
|
|
|
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
|
|
|
|
x-develop:
|
|
|
|
watch:
|
|
|
|
- action: sync
|
|
|
|
- path: ./modules
|
|
|
|
- target: /modules
|
2023-11-15 12:36:00 +00:00
|
|
|
back:
|
|
|
|
image: salix-back
|
2023-12-13 14:32:06 +00:00
|
|
|
restart: unless-stopped
|
2023-11-15 12:36:00 +00:00
|
|
|
build:
|
|
|
|
context: .
|
2023-12-13 14:32:06 +00:00
|
|
|
dockerfile: Dockerfile.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-13 14:32:06 +00:00
|
|
|
volumes:
|
|
|
|
- ./loopback:/salix/loopback
|
|
|
|
- ./storage:/salix/storage
|
|
|
|
- ./modules:/salix/modules
|
|
|
|
- ./back:/salix/back
|
|
|
|
- ./print:/salix/print
|
|
|
|
x-develop:
|
|
|
|
watch:
|
|
|
|
- action: sync
|
|
|
|
- path: ./back
|
|
|
|
- target: /back
|
|
|
|
- action: sync
|
|
|
|
- path: ./models
|
|
|
|
- target: /models
|
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
|
|
|
|