mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
... but use it in the same pod. It seems to be possible to have shared volumes in the same pod: https://kubernetes.io/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume/
36 lines
864 B
YAML
36 lines
864 B
YAML
version: "3.7"
|
|
|
|
services:
|
|
backend:
|
|
volumes:
|
|
- uploads:/nitro-backend/public/uploads
|
|
neo4j:
|
|
volumes:
|
|
- mongo-export:/mongo-export
|
|
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
|
|
depends_on:
|
|
- backend
|
|
environment:
|
|
- NEO4J_URI=bolt://neo4j:7687
|
|
- "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}"
|
|
|
|
volumes:
|
|
mongo-export:
|
|
uploads:
|