mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
* remote uploads directory * download content of uploads directory with `scp` * share uploads volume with backend container
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
backend:
|
|
image: humanconnection/nitro-backend:builder
|
|
build:
|
|
context: .
|
|
target: builder
|
|
volumes:
|
|
- .:/nitro-backend
|
|
- /nitro-backend/node_modules
|
|
- uploads:/nitro-backend/public/uploads
|
|
command: yarn run dev
|
|
neo4j:
|
|
volumes:
|
|
- mongo-export:/mongo-export
|
|
- ./neo4j/import:/var/lib/neo4j/import
|
|
ports:
|
|
- 7687:7687
|
|
- 7474:7474
|
|
environment:
|
|
- NEO4J_apoc_import_file_enabled=true
|
|
db-migration-worker:
|
|
build:
|
|
context: db-migration-worker
|
|
volumes:
|
|
- mongo-export:/mongo-export
|
|
- uploads:/uploads
|
|
- ./db-migration-worker/.ssh/:/root/.ssh/
|
|
networks:
|
|
- hc-network
|
|
environment:
|
|
- "SSH_USERNAME=${SSH_USERNAME}"
|
|
- "SSH_HOST=${SSH_HOST}"
|
|
- "MONGODB_USERNAME=${MONGODB_USERNAME}"
|
|
- "MONGODB_PASSWORD=${MONGODB_PASSWORD}"
|
|
- "MONGODB_AUTH_DB=${MONGODB_AUTH_DB}"
|
|
- "MONGODB_DATABASE=${MONGODB_DATABASE}"
|
|
- "UPLOADS_DIRECTORY=${UPLOADS_DIRECTORY}"
|
|
command: "--smallfiles --logpath=/dev/null"
|
|
|
|
volumes:
|
|
mongo-export:
|
|
uploads:
|