salix/docker-compose.local.yml

58 lines
1.4 KiB
YAML
Raw Normal View History

version: "3.7"
services:
db:
image: salix-db
build:
context: db
dockerfile: Dockerfile
2023-11-15 14:47:59 +00:00
front:
image: front
restart: unless-stopped
2023-11-15 14:47:59 +00:00
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
x-develop:
watch:
- action: sync
- path: ./modules
- target: /modules
back:
image: salix-back
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile.local
ports:
- 3000:3000
environment:
- NODE_ENV
2023-11-15 14:47:59 +00:00
depends_on:
- db
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
networks:
salix-stack-network:
2023-11-15 14:47:59 +00:00
driver: host