50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
version: "3.7"
|
|
services:
|
|
db:
|
|
image: db:local
|
|
restart: unless-stopped
|
|
build:
|
|
context: db
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- 3306:3306
|
|
front:
|
|
image: front:local
|
|
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
|
|
|
|
back:
|
|
image: back:local
|
|
restart: unless-stopped
|
|
build:
|
|
context: .
|
|
dockerfile: back/Dockerfile.local
|
|
ports:
|
|
- 3000:3000
|
|
environment:
|
|
- NODE_ENV
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
- ./loopback:/salix/loopback
|
|
- ./storage:/salix/storage
|
|
- ./modules:/salix/modules
|
|
- ./back:/salix/back
|
|
- ./print:/salix/print
|
|
|
|
networks:
|
|
salix-stack-network:
|
|
driver: host
|
|
|