mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
After endless try/error I found the way to share volumes between multiple docker-compose.ymls: You have to place those files in the same folder. Also the import scripts must be adapted.
37 lines
740 B
YAML
37 lines
740 B
YAML
version: "3.4"
|
|
|
|
services:
|
|
webapp:
|
|
build:
|
|
context: webapp
|
|
target: build-and-test
|
|
volumes:
|
|
- ./webapp:/nitro-web
|
|
- webapp_node_modules:/nitro-web/node_modules
|
|
command: yarn run dev
|
|
user: root
|
|
backend:
|
|
image: humanconnection/nitro-backend:builder
|
|
build:
|
|
context: backend
|
|
target: builder
|
|
volumes:
|
|
- ./backend:/nitro-backend
|
|
- backend_node_modules:/nitro-backend/node_modules
|
|
- uploads:/nitro-backend/public/uploads
|
|
command: yarn run dev
|
|
neo4j:
|
|
environment:
|
|
- NEO4J_AUTH=none
|
|
ports:
|
|
- 7687:7687
|
|
- 7474:7474
|
|
volumes:
|
|
- neo4j-data:/data
|
|
|
|
volumes:
|
|
webapp_node_modules:
|
|
backend_node_modules:
|
|
neo4j-data:
|
|
uploads:
|