version: "3.7" services: db: image: salix-db build: context: db dockerfile: Dockerfile front: image: front 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 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 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: driver: host