153 Commits

Author SHA1 Message Date
negodiy
487e490dbc compose: add coolify-native stack without nginx/certbot
Made-with: Cursor
2026-03-16 11:01:35 +00:00
negodiy
8b7d789b27 compose: expose inventaire internal port for Traefik routing
Made-with: Cursor
2026-03-16 10:48:28 +00:00
negodiy
8b3a78be3e nginx: speed up dhparam generation to avoid Coolify build timeout
Made-with: Cursor
2026-03-16 10:13:45 +00:00
negodiy
35908d602c compose: provide defaults for required inventaire env vars
Made-with: Cursor
2026-03-16 09:59:27 +00:00
negodiy
47c43f07f7 compose: add defaults for required CouchDB and Inventaire env vars
Made-with: Cursor
2026-03-16 09:46:37 +00:00
negodiy
e548f5e349 nginx: отключить порты 80/443 для деплоя через Coolify
Made-with: Cursor
2026-03-16 09:06:31 +00:00
maxlath
2d223df234 nginx: add /assets location to fit Vite build 2025-10-10 16:51:15 +02:00
maxlath
0e31506126 replace shared volume between the inventaire and nginx services by a multi-stage copy
See https://docs.docker.com/build/building/multi-stage/#use-an-external-image-as-a-stage

The shared volume was making updates complicated, as the persisted volume data would not be overriden by the new container
2025-06-29 19:19:03 +02:00
maxlath
513ec266d3 inventaire: docker-entrypoint: fix leveldb directory path
The actual leveldb directory was /opt/inventaire_leveldb-prod instead of /opt/inventaire_leveldb

Made possible by the `suffixDirectoryPathWithDbSuffix` config parameter introduced by https://codeberg.org/inventaire/inventaire/commit/7447c00

Addressing https://codeberg.org/inventaire/docker-inventaire/issues/14
2025-06-03 16:07:16 +02:00
maxlath
524f0b904c scripts: docker_publish: set version tag and push tags 2025-06-03 15:29:35 +02:00
maxlath
eee0f61260 inventaire: update naming
following https://codeberg.org/inventaire/inventaire/commit/91a4dfa7d
2025-05-31 17:46:11 +02:00
maxlath
61d466f7a2 nginx: fix inconsistencies in certbox public file directory
Some where referring to /var/www/html, some to /var/www/certbot: now everything should be in /var/www/html,
that should fix certificate renewal
2025-05-31 16:50:14 +02:00
maxlath
56c2dc08e3 update links after codeberg migration 2025-05-17 12:22:33 +02:00
jums
42ff34d0f0 add .github/README 2025-05-16 17:13:27 +02:00
maxlath
f7e376ca06 docker-compose.yml: add volumes to preserve local images, cache data, and eventual backups
This commit relies on the possibility to customize the LevelDB directory
introduced in https://github.com/inventaire/inventaire/commit/4fb86f6
2025-04-17 15:09:14 +02:00
maxlath
f9419539ba docker-compose.yml: couchdb: increase Erlang I/O threads 2025-03-05 16:24:05 +01:00
maxlath
e2ef349a1d couchdb config: increase session timeout 2025-03-04 13:22:34 +01:00
maxlath
7bb3759cfa readme: add section on updates 2025-03-03 01:35:41 +01:00
maxlath
e1d8be754f inventaire: build image from a specific git ref 2025-03-02 23:49:10 +01:00
maxlath
6b6c055411 couchdb: local.ini: set require_valid_user = true 2025-02-28 22:06:18 +01:00
maxlath
caa74f977d Merge pull request #12 from inventaire/package-prod 2025-02-28 11:43:18 +01:00
jums
ab286b4968 Dockerfile.nginx: only generate pem key if the file does not exist 2025-02-28 11:42:48 +01:00
jums
a3b10d2674 gitignore: add certbot folder
to untrack the autogenerated certbot config folder, created when running certonly
2025-02-28 11:42:48 +01:00
maxlath
5109271529 nginx: fix /tmp/nginx permission issues 2025-02-28 11:42:48 +01:00
maxlath
f91ad3c8a3 nginx: fix proxy_store 2025-02-28 11:42:48 +01:00
maxlath
0d17fb551d inventaire: add map tiles, analytics, and media storage configuration 2025-02-28 11:42:48 +01:00
maxlath
b4d42a83e5 nginx: recover location @invimg 2025-02-28 11:42:48 +01:00
maxlath
f128298778 nginx: recover catch all (aka client router) location 2025-02-28 11:42:48 +01:00
maxlath
8f14a6eea1 inventaire: local config: document config overwrites 2025-02-28 11:42:48 +01:00
maxlath
4d61613826 inventaire: local config: fix hostname
inventaire being the server hostname within the docker container
2025-02-28 11:42:48 +01:00
maxlath
19383ebc29 nginx: removing obsolete comment
relative to aliases http://nginx.org/en/docs/http/ngx_http_core_module.html#alias
which aren't used in this config
2025-02-28 11:42:48 +01:00
maxlath
e5a71bd9ea docker-compose.yml: elasticsearch: add some more options
inspired by https://github.com/elastic/elasticsearch/issues/85463#issuecomment-2299705984
2025-02-28 11:42:48 +01:00
maxlath
8479151e63 docker-compose.yml: elasticsearch: reduce default RAM use 2025-02-28 11:42:48 +01:00
maxlath
238f2c51d0 nginx: use http2 directive
following the deprecation warning in the logs
See http://nginx.org/en/docs/http/ngx_http_v2_module.html
2025-02-28 11:42:48 +01:00
maxlath
4cffed239d inventaire container: move docker-entrypoint.sh outside of /opt/inventaire
to avoid undesired interactions with the shared inventaire-server volume
2025-02-28 11:42:48 +01:00
maxlath
f30a03a304 docker-compose.yml: share inventaire files with nginx through a named volume
as using a host path seems to result in that path being empty o_O
Possibly has to do with https://forums.docker.com/t/docker-volume-deleting-content-from-container-when-started/28168
2025-02-28 11:42:48 +01:00
maxlath
abbfa8216d nginx template: rename the upstream to avoid confusions with the container name 2025-02-28 11:42:48 +01:00
maxlath
095293b0a5 nginx: recover access to the inventaire files and API 2025-02-28 11:42:48 +01:00
maxlath
5e408aad2b nginx: disable compression to mitigate BREACH exploit 2025-02-28 11:42:48 +01:00
maxlath
f2ddb13bc7 inventaire: allow to customize the mailer config 2025-02-28 11:42:48 +01:00
maxlath
b4b0ddab6f nginx: fix ssl_certificate* paths 2025-02-28 11:42:48 +01:00
maxlath
02454e39cf nginx Dockerfile: generate dhparam.pem 2025-02-28 11:42:48 +01:00
maxlath
a224610d28 docker-compose.yml: add warning on port binding in prod 2025-02-28 11:42:48 +01:00
maxlath
1450ac5888 readme: udpate docker compose commands to v2 syntax
See https://docs.docker.com/compose/releases/migrate/
2025-02-28 11:42:48 +01:00
maxlath
edfcc2494a + scripts/docker_publish.sh 2025-02-28 11:42:48 +01:00
maxlath
06979f1a46 gitignore: add .docker
to be able to use per-directory docker config
See https://stackoverflow.com/a/51610644
2025-02-28 11:42:48 +01:00
maxlath
353d8b381d readme: further rework 2025-02-28 11:42:48 +01:00
maxlath
fd2fce9147 docker-compose: remove tty=true
as it seems unnecessary for our use-case
See https://docs.docker.com/reference/compose-file/services/#tty
and https://docs.docker.com/reference/cli/docker/container/run/#tty
2025-02-28 11:42:48 +01:00
maxlath
10e33f919e inventaire: docker-entrypoint.sh: adapt the edited local config file to the used NODE_ENV
Everything is this docker-compose.yml is done with NODE_ENV=production in mind, but if someone wants to play with other environments,
that should now work too
2025-02-28 11:42:48 +01:00
jums
fa0b91eef1 README: replace nginx obsolete documentation since packaged in compose 2025-02-28 11:42:48 +01:00