Another attempt to fix invenio plugin

This commit is contained in:
2025-05-02 12:30:09 +01:00
parent 709687486d
commit 56df5f9b9f
2 changed files with 6 additions and 12 deletions

View File

@@ -1,9 +1,7 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json # yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
services: services:
site: site:
build: build: src
context: .
dockerfile: ./src/Dockerfile
networks: networks:
- am-d-model-network - am-d-model-network
expose: expose:
@@ -43,18 +41,16 @@ services:
awslogs-stream: caddy awslogs-stream: caddy
awslogs-create-group: "true" awslogs-create-group: "true"
invenio-rdm: invenio-rdm:
build: build: invenio
context: .
dockerfile: ./invenio/Dockerfile
networks: networks:
- am-d-model-network - am-d-model-network
pull_policy: if_not_present pull_policy: if_not_present
volumes: volumes:
- uploaded_data:/opt/invenio/var/instance/data - uploaded_data:/opt/invenio/var/instance/data
- archived_data:/opt/invenio/var/instance/archive - archived_data:/opt/invenio/var/instance/archive
- ./invenio/assets:/opt/invenio/var/instance/static/custom_assets # Add static assets for theming - assets:/opt/invenio/var/instance/static/custom_assets # Add static assets for theming
- ./invenio/plugin:/opt/invenio/var/instance/plugin # Add plugin for customisations - plugin:/opt/invenio/var/instance/plugin # Add plugin for customisations
- ./invenio.cfg:/opt/invenio/var/instance/invenio.cfg # Override the config with our custom one - invenio.cfg:/opt/invenio/var/instance/invenio.cfg # Override the config with our custom one
environment: environment:
# Production mode # Production mode
- INVENIO_ENV=production - INVENIO_ENV=production
@@ -159,9 +155,7 @@ services:
awslogs-stream: invenio-rdm awslogs-stream: invenio-rdm
awslogs-create-group: "true" awslogs-create-group: "true"
worker: worker:
build: build: ghcr.io/front-matter/invenio-rdm-starter:v12.0.13.4
context: .
dockerfile: ./invenio/Dockerfile
command: "celery -A invenio_app.celery worker --beat --events --loglevel=WARNING" command: "celery -A invenio_app.celery worker --beat --events --loglevel=WARNING"
networks: networks:
- am-d-model-network - am-d-model-network