Skip to content

Commit

Permalink
Upgrade the container config for Postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jan 2, 2019
1 parent 65cea6d commit 165737d
Show file tree
Hide file tree
Showing 5 changed files with 167 additions and 81 deletions.
65 changes: 0 additions & 65 deletions danielquinn-paperless-backup.syno.json

This file was deleted.

Expand Up @@ -2,13 +2,16 @@
"cap_add" : [],
"cap_drop" : [],
"cmd" : "document_consumer",
"cpu_priority" : 50,
"cpu_priority" : 10,
"devices" : null,
"enable_publish_all_ports" : false,
"enable_restart_policy" : true,
"enabled" : true,
"entrypoint_default" : "/sbin/docker-entrypoint.sh",
"env_variables" : [
{
"key" : "PAPERLESS_DBHOST",
"value" : "postgres"
},
{
"key" : "PATH",
"value" : "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Expand Down Expand Up @@ -47,12 +50,12 @@
}
],
"exporting" : false,
"id" : "c545301bc550785ac8a6b800fb7a491b1dc6e893a5fb273776cac9eeaf740343",
"id" : "e77fcdb40f980461986de00e8d2fa87c3fe1945068f9275c407b0e3e38289121",
"image" : "danielquinn/paperless:latest",
"is_ddsm" : false,
"is_package" : false,
"links" : [],
"memory_limit" : 0,
"memory_limit" : 4294967296,
"name" : "danielquinn-paperless-consumer",
"network" : [
{
Expand All @@ -70,18 +73,23 @@
"use_host_network" : false,
"volume_bindings" : [
{
"host_volume_file" : "/data/sync/Documents Stéphane Laetitia/paperless/consume",
"mount_point" : "/consume",
"host_volume_file" : "/paperless/dumpdata",
"mount_point" : "/dumpdata",
"type" : "rw"
},
{
"host_volume_file" : "/data/sync/Documents Stéphane Laetitia/paperless/media",
"mount_point" : "/usr/src/paperless/media",
"host_volume_file" : "/paperless/export",
"mount_point" : "/export",
"type" : "rw"
},
{
"host_volume_file" : "/data/sync/Documents Stéphane Laetitia/paperless/data",
"mount_point" : "/usr/src/paperless/data",
"host_volume_file" : "/paperless/consume",
"mount_point" : "/consume",
"type" : "rw"
},
{
"host_volume_file" : "/paperless/media",
"mount_point" : "/usr/src/paperless/media",
"type" : "rw"
}
],
Expand Down
Expand Up @@ -7,8 +7,11 @@
"enable_publish_all_ports" : false,
"enable_restart_policy" : true,
"enabled" : false,
"entrypoint_default" : "/sbin/docker-entrypoint.sh",
"env_variables" : [
{
"key" : "PAPERLESS_DBHOST",
"value" : "postgres"
},
{
"key" : "PATH",
"value" : "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Expand Down Expand Up @@ -43,7 +46,7 @@
}
],
"exporting" : false,
"id" : "af4faf487b324c3209ee8fce6e427944ba32fd3c3b8fc50e5400be45b850f24d",
"id" : "30691049e29a312ab184291d03ddea034c4824517c82a126d1e43205f554fa25",
"image" : "danielquinn/paperless:latest",
"is_ddsm" : false,
"is_package" : false,
Expand Down Expand Up @@ -72,13 +75,13 @@
"use_host_network" : false,
"volume_bindings" : [
{
"host_volume_file" : "/data/sync/Documents Stéphane Laetitia/paperless/media",
"mount_point" : "/usr/src/paperless/media",
"host_volume_file" : "/paperless/dumpdata",
"mount_point" : "/dump",
"type" : "rw"
},
{
"host_volume_file" : "/data/sync/Documents Stéphane Laetitia/paperless/data",
"mount_point" : "/usr/src/paperless/data",
"host_volume_file" : "/paperless/media",
"mount_point" : "/usr/src/paperless/media",
"type" : "rw"
}
],
Expand Down
85 changes: 85 additions & 0 deletions postgres.json
@@ -0,0 +1,85 @@
{
"cap_add" : null,
"cap_drop" : null,
"cmd" : "postgres",
"cpu_priority" : 50,
"devices" : null,
"enable_publish_all_ports" : false,
"enable_restart_policy" : true,
"enabled" : true,
"entrypoint_default" : "docker-entrypoint.sh",
"env_variables" : [
{
"key" : "PATH",
"value" : "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin"
},
{
"key" : "GOSU_VERSION",
"value" : "1.10"
},
{
"key" : "LANG",
"value" : "en_US.utf8"
},
{
"key" : "PG_MAJOR",
"value" : "10"
},
{
"key" : "PG_VERSION",
"value" : "10.5-2.pgdg90+1"
},
{
"key" : "PGDATA",
"value" : "/var/lib/postgresql/data"
},
{
"key" : "POSTGRES_DB",
"value" : "paperless"
},
{
"key" : "POSTGRES_USER",
"value" : "paperless"
},
{
"key" : "POSTGRES_PASSWORD",
"value" : "1234"
}
],
"exporting" : false,
"id" : "31b1f071e4f98c6ab607fc105013675c1575b4fc8abd406553cfb92cc909af29",
"image" : "postgres:10",
"is_ddsm" : false,
"is_package" : false,
"links" : [],
"memory_limit" : 0,
"name" : "postgres",
"network" : [
{
"driver" : "bridge",
"name" : "bridge"
}
],
"network_mode" : "bridge",
"port_bindings" : [
{
"container_port" : 5432,
"host_port" : 0,
"type" : "tcp"
}
],
"privileged" : false,
"shortcut" : {
"enable_shortcut" : false
},
"ulimits" : null,
"use_host_network" : false,
"volume_bindings" : [
{
"host_volume_file" : "/paperless/pgdata",
"mount_point" : "/var/lib/postgresql/data",
"type" : "rw"
}
],
"volumes_from" : null
}
55 changes: 55 additions & 0 deletions sbrunner-scan-to-paperless.json
@@ -0,0 +1,55 @@
{
"cap_add" : [],
"cap_drop" : [],
"cmd" : "/opt/process",
"cpu_priority" : 50,
"devices" : null,
"enable_publish_all_ports" : false,
"enable_restart_policy" : true,
"enabled" : false,
"env_variables" : [
{
"key" : "LANG",
"value" : "C.UTF-8"
},
{
"key" : "PROGRESS",
"value" : "TRUE"
}
],
"exporting" : false,
"id" : "3b6322a6058f8a6a02d23157c8e8dd724e136a2c59cc7c1e0b34e13d496fb973",
"image" : "sbrunner/scan-to-paperless:latest",
"is_ddsm" : false,
"is_package" : false,
"links" : [],
"memory_limit" : 0,
"name" : "sbrunner-scan-to-paperless",
"network" : [
{
"driver" : "bridge",
"name" : "bridge"
}
],
"network_mode" : "bridge",
"port_bindings" : [],
"privileged" : false,
"shortcut" : {
"enable_shortcut" : false
},
"ulimits" : null,
"use_host_network" : false,
"volume_bindings" : [
{
"host_volume_file" : "/paperless/scan",
"mount_point" : "/source",
"type" : "rw"
},
{
"host_volume_file" : "/paperless/consume",
"mount_point" : "/destination",
"type" : "rw"
}
],
"volumes_from" : null
}

0 comments on commit 165737d

Please sign in to comment.