services: api: container_name: api image: embernexus/api:latest volumes: - ./well-known-security.txt:/well-known-security.txt:ro # /dev/shm holds the element type index (MPHF_STORAGE=memory), Docker limits it to 64 MB by default shm_size: 1gb ports: - "80:80" environment: - APP_ENV=prod # The image contains no default .env file, both values have to be set. # Secret of the Symfony kernel: replace it with your own random string (e.g. `openssl rand -hex 16`) and keep it # private. Do not use the value of this example. - APP_SECRET=f762ce98c98b7579d2d6a6c0e5eb1d39 # Id of the user which is used for requests without a token, see the anonymous user in the documentation. The value # is the anonymous user of the reference dataset; replace it with the id of your own anonymous user. - ANONYMOUS_USER_UUID=02IiNr0GOoKiPMLSxpKrArvUWmaEqZ5h7Uybr - CYPHER_AUTH=bolt://neo4j:password@neo4j - MONGO_AUTH=mongodb://mongodb:password@mongodb:27017 - ELASTIC_AUTH=elasticsearch:9200 - REDIS_AUTH=tcp://redis?password=redis-password - RABBITMQ_AUTH=amqp://user:password@rabbitmq:5672 - S3_ENDPOINT=http://minio:9000 - S3_ACCESS_KEY_ID=ROOTNAME - S3_SECRET_ACCESS_KEY=CHANGEME123 depends_on: - neo4j - mongodb - elasticsearch - redis - rabbitmq - minio-init neo4j: container_name: neo4j image: neo4j:5 ports: - "7474:7474" - "7687:7687" volumes: - ./volumes/neo4j/data:/data - ./volumes/neo4j/logs:/logs environment: - NEO4J_AUTH=neo4j/password mongodb: container_name: mongodb image: mongo:8 ports: - "27017:27017" volumes: - ./volumes/mongodb:/data/db environment: - MONGO_INITDB_ROOT_USERNAME=mongodb - MONGO_INITDB_ROOT_PASSWORD=password # see https://github.com/docker-library/mongo/discussions/748#discussioncomment-15927486 - GLIBC_TUNABLES=glibc.cpu.hwcaps=-SHSTK elasticsearch: container_name: elasticsearch image: elasticsearch:8.19.25 ports: - "9200:9200" volumes: - ./volumes/elasticsearch:/usr/share/elasticsearch/data environment: - discovery.type=single-node - xpack.security.enabled=false redis: container_name: redis image: redis:8 ports: - "6379:6379" volumes: - ./volumes/redis:/data command: redis-server --save 20 1 --appendonly yes --maxmemory-policy noeviction --loglevel warning --requirepass redis-password rabbitmq: container_name: rabbitmq image: rabbitmq:4-management ports: - "5672:5672" - "15672:15672" volumes: - ./volumes/rabbitmq:/var/lib/rabbitmq environment: - RABBITMQ_DEFAULT_USER=user - RABBITMQ_DEFAULT_PASS=password minio: container_name: minio image: quay.io/minio/minio:latest ports: - "9000:9000" - "9001:9001" volumes: - ./volumes/minio:/data environment: - MINIO_ROOT_USER=ROOTNAME - MINIO_ROOT_PASSWORD=CHANGEME123 command: server /data --console-address ":9001" # one-shot container that creates the three S3 buckets Ember Nexus expects (file.S3StorageBucket, # file.S3UploadBucket and the system bucket, see the configuration reference) and then exits; minio # does not create these on its own minio-init: container_name: minio-init image: quay.io/minio/mc:latest depends_on: - minio entrypoint: > /bin/sh -c " until mc alias set local http://minio:9000 ROOTNAME CHANGEME123; do sleep 1; done; mc mb --ignore-existing local/api-storage; mc mb --ignore-existing local/api-upload; mc mb --ignore-existing local/ember-nexus-system; "