How to build a community container for paperless-ngx #5641
-
Could s.o. provide some instructions to jump start a docker newbie with that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey, so the trick is to translate the given docker-compose like e.g. this one https://github.com/paperless-ngx/paperless-ngx/blob/dev/docker/compose/docker-compose.sqlite.yml to the json syntax used in AIO like stated in https://github.com/nextcloud/all-in-one/tree/main/community-containers#how-to-add-containers: {
"aio_services_v1": [
{
"container_name": "nextcloud-aio-paperless-ngx",
"display_name": "Paperless-ngx",
"documentation": "https://github.com/nextcloud/all-in-one/tree/main/community-containers/paperless-ngx",
"depends_on": [
"nextcloud-aio-paperless-ngx-redis"
],
"image": "paperlessngx/paperless-ngx",
"image_tag": "latest",
"internal_port": "8000",
"restart": "unless-stopped",
"ports": [
{
"ip_binding": "%APACHE_IP_BINDING%",
"port_number": "8000",
"protocol": "tcp"
}
],
"environment": [
"TZ=%TIMEZONE%",
"COMPOSE_PROJECT_NAME=paperless",
"PAPERLESS_REDIS=redis://nextcloud-aio-paperless-ngx-redis:6379"
],
"volumes": [
{
"source": "nextcloud_aio_paperless_ngx_data",
"destination": "/usr/src/paperless/data",
"writeable": true
},
{
"source": "nextcloud_aio_paperless_ngx_media", // or should the nextcloud datadir be mounted here? What is the media folder for?
"destination": "/usr/src/paperless/media",
"writeable": true
}/* Not 100% sure on the volumes below:,
{
"source": "nextcloud_aio_paperless_ngx_export", // should this be included in the backup solution?
"destination": "/usr/src/paperless/export",
"writeable": true
},
{
"source": "nextcloud_aio_paperless_ngx_consume", // should this be Nextclouds datadir or can it be ommitted?
"destination": "/usr/src/paperless/consume",
"writeable": true // does this needs to be writeable?
}*/
],
"backup_volumes": [
"nextcloud_aio_paperless_ngx_data" // and more?
]
},
{
"container_name": "nextcloud-aio-paperless-ngx-redis",
"display_name": "Paperless-ngx-redis",
"documentation": "https://github.com/nextcloud/all-in-one/tree/main/community-containers/paperless-ngx",
"image": "redis",
"image_tag": "7",
"internal_port": "6379",
"restart": "unless-stopped",
"environment": [
"TZ=%TIMEZONE%"
],
"volumes": [
{
"source": "nextcloud_aio_paperless_ngx_redis",
"destination": "/data",
"writeable": true
}
]
}
]
} If you want to step in as the maintainer, please create a PR by following https://github.com/nextcloud/all-in-one/tree/main/community-containers#how-to-add-containers. Let me know if you need any help on this :) |
Beta Was this translation helpful? Give feedback.
Hey, so the trick is to translate the given docker-compose like e.g. this one https://github.com/paperless-ngx/paperless-ngx/blob/dev/docker/compose/docker-compose.sqlite.yml to the json syntax used in AIO like stated in https://github.com/nextcloud/all-in-one/tree/main/community-containers#how-to-add-containers: