2023-11-15 12:36:00 +00:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
|
|
|
db:
|
2023-12-19 14:32:39 +00:00
|
|
|
image: db:local
|
|
|
|
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-19 14:32:39 +00:00
|
|
|
image: front:local
|
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-19 14:32:39 +00:00
|
|
|
image: back:local
|
2023-12-13 14:32:06 +00:00
|
|
|
restart: unless-stopped
|
2023-11-15 12:36:00 +00:00
|
|
|
build:
|
|
|
|
context: .
|
2023-12-19 14:32:39 +00:00
|
|
|
dockerfile: back/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
|
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
|
|
|
|