mirror of
https://github.com/Cian-H/iform-invenio.git
synced 2025-12-22 20:41:56 +00:00
Minimal, working caddy setup
This commit is contained in:
@@ -2,10 +2,7 @@
|
|||||||
admin off
|
admin off
|
||||||
}
|
}
|
||||||
|
|
||||||
invenio.i-form.ie {
|
localhost {
|
||||||
root /static/* /opt/invenio/var/instance/static
|
|
||||||
try_files {path} {path}/ /index.html
|
|
||||||
reverse_proxy invenio-rdm:5000
|
reverse_proxy invenio-rdm:5000
|
||||||
file_server
|
|
||||||
encode gzip
|
encode gzip
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- invenio-network
|
- invenio-network
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "8080:80"
|
||||||
- "443:443"
|
- "8443:443"
|
||||||
volumes:
|
volumes:
|
||||||
- caddy_data:/data
|
- caddy_data:/data
|
||||||
- ./caddy:/etc/caddy
|
- ./caddy:/etc/caddy
|
||||||
@@ -16,19 +16,17 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
- "io.containers.autoupdate=registry"
|
- "io.containers.autoupdate=registry"
|
||||||
invenio-rdm:
|
invenio-rdm:
|
||||||
image: ghcr.io/front-matter/invenio-rdm-starter:v12.0.13.4
|
image: ghcr.io/front-matter/invenio-rdm-starter:latest
|
||||||
networks:
|
networks:
|
||||||
- invenio-network
|
- invenio-network
|
||||||
pull_policy: if_not_present
|
ports:
|
||||||
|
- "5000:5000"
|
||||||
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
|
- ./invenio_assets:/opt/invenio/var/instance/static/custom_assets # Add static assets for theming
|
||||||
- ./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
|
|
||||||
- INVENIO_ENV=production
|
|
||||||
|
|
||||||
# Flask
|
# Flask
|
||||||
- INVENIO_APP_ALLOWED_HOSTS=${INVENIO_APP_ALLOWED_HOSTS:-['0.0.0.0', 'localhost', '127.0.0.1']}
|
- INVENIO_APP_ALLOWED_HOSTS=${INVENIO_APP_ALLOWED_HOSTS:-['0.0.0.0', 'localhost', '127.0.0.1']}
|
||||||
|
|
||||||
@@ -122,8 +120,7 @@ services:
|
|||||||
command: "celery -A invenio_app.celery worker --beat --events --loglevel=WARNING"
|
command: "celery -A invenio_app.celery worker --beat --events --loglevel=WARNING"
|
||||||
networks:
|
networks:
|
||||||
- invenio-network
|
- invenio-network
|
||||||
image: ghcr.io/front-matter/invenio-rdm-starter:v12.0.13.4
|
image: ghcr.io/front-matter/invenio-rdm-starter:latest
|
||||||
pull_policy: if_not_present
|
|
||||||
volumes:
|
volumes:
|
||||||
- uploaded_data:/opt/invenio/var/instance/data
|
- uploaded_data:/opt/invenio/var/instance/data
|
||||||
environment:
|
environment:
|
||||||
@@ -211,7 +208,6 @@ services:
|
|||||||
|
|
||||||
networks:
|
networks:
|
||||||
invenio-network:
|
invenio-network:
|
||||||
name: invenio-network
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
app_data:
|
app_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user