diff --git a/.env b/.env index 3a6b12fa00..3d04ed17a0 100644 --- a/.env +++ b/.env @@ -143,7 +143,10 @@ PHRASEANET_HOSTNAME=phraseanet.phrasea.local # Phrasea network Name, the name of Phrasea network and see by traefik # @run -PS_NETWORK_NAME=ps_internal +PHRASEA_NETWORK_NAME=ps_internal + +PHRASEA_DOMAIN=phrasea.local +PHRASEA_GATEWAY_IP=172.30.0.1 # --- Phraseanet container entrypoint settings ------------------------------------------------------------------------- diff --git a/CHANGELOG.md b/CHANGELOG.md index bd057baf0e..fbadb8c094 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,47 @@ # CHANGELOG +## 4.1.6-rc2 + +### Update instructions + + - docker docker-compose : add profile "gateway-classic" to your ```COMPOSE_PROFILES``` + - Migration patch: no patch to play, just run upgrade for bump version + - Elasticsearch index action : Requires a drop, create, populate + +### Version summary : + + - A new facet named "Thumbnail_orientation" is available in replacement/addition of "_orientation" (based on exif orientation) + This facet is based on orientation of generated subdef named "thumbnail". + see section searchengine setting/ aggregate in Admin to activate it. + the features require an Elasticsearch index drop, create, populate + - Adding a separate docker-compose profile to nginx container for a better stack compositing + +### New Features + +``` +PHRAS-3215 Prod - facets - use image orientation from subdefinition and make a facet of it +``` + +### Improvements + +``` +PHRAS-3643 Bin/console records:build-subdef add option --publish to emit build message to Rabbitmq +PHRAS-3653 Worker queue message : publish messages as persistent into rabbitmq queues +PHRAS-3560 Admin - Users list and search improvement and export users as .csv, add "last connection" +``` + +### Bug fix + +``` +PHRAS-3651 prod-facets : tech facets "no value" wrongly translated, some always return 0 answers + ``` + ## 4.1.6-rc1 ### Update instructions - Migration patch: no patch to play, just run upgrade for bump version - - Elasticsearch action : none + - Elasticsearch index action : none ### Version summary : diff --git a/README.md b/README.md index 8b931453aa..442f23b903 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ Get official support : https://www.alchemy.fr/en/rubrique/services/ ## Prerequisites -- docker-compose >=v1.28 +- docker-compose >=v1.29.2 - docker >=v19.03.13 In the stack Docker, Docker-Compose included in this repo starts by default in test mode. diff --git a/doc/infra/compose/phraseanet_traefik.md b/doc/infra/compose/phraseanet_traefik.md new file mode 100644 index 0000000000..452f99b63a --- /dev/null +++ b/doc/infra/compose/phraseanet_traefik.md @@ -0,0 +1,44 @@ +# Phraseanet under Traefik + +Doc status : Beta + +Take a look to Traefik documentation + +https://doc.traefik.io/traefik/providers/docker/ + +## Traekik Provide by Phrasea Stack + +Requirement + +- A phrasea stack up. + +https://github.com/alchemy-fr/phrasea + +Phraseanet stack and Phrasea Stack need to be in separate subnet +You need to set several Phraseanet's and Phrasea env var for using the Traefik include in Phrasea Stack. + +### Phraseanet side + +- Add `docker-compose.under-phrasea.yml` to `COMPOSE_FILES` + +- Add `gateway-traefik` and remove `gateway-classic` from `COMPOSE_PROFILES` + +- Set `PHRASEA_DOMAIN` with the name of network set Phrasea side + +- Set `PHRASEANET_TRUSTED_PROXIES` with the phrasea subnet eg: `PHRASEANET_TRUSTED_PROXIES=172.30.0.0/16` + + +### Phrasea side + +- Set `PHRASEANET_BASE_URL` and `PHRASEANET_APP_OAUTH_TOKEN` in accordance of your Phraseanet's setting + + + +## Traekik provide by Phraseanet Stack + +Not implemented + + + + + diff --git a/doc/infra/minikube.md b/doc/infra/minikube/minikube.md similarity index 100% rename from doc/infra/minikube.md rename to doc/infra/minikube/minikube.md diff --git a/docker-compose.under-phrasea.yml b/docker-compose.under-phrasea.yml index 9483ce58e7..e62d9225ab 100644 --- a/docker-compose.under-phrasea.yml +++ b/docker-compose.under-phrasea.yml @@ -3,9 +3,22 @@ version: "3.9" networks: phrasea: external: - name: ${PS_NETWORK_NAME} + name: ${PHRASEA_NETWORK_NAME} + services: gateway-traefik: networks: + - internal - phrasea + labels: + - "traefik.enable=true" + - "traefik.docker.network=${PHRASEA_NETWORK_NAME}" + - "traefik.http.routers.phraseanet.rule=Host(`${PHRASEANET_HOSTNAME}`)" + - "traefik.http.routers.phraseanet.tls=true" + phraseanet: + extra_hosts: + - minio.${PHRASEA_DOMAIN}:${PHRASEA_GATEWAY_IP} + - api-databox.${PHRASEA_DOMAIN}:${PHRASEA_GATEWAY_IP} + - databox-indexer.${PHRASEA_DOMAIN}:${PHRASEA_GATEWAY_IP} + - phraseanet.${PHRASEA_DOMAIN}:${PHRASEA_GATEWAY_IP} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 8f606f641a..2d9fd836c5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,7 +34,7 @@ services: networks: - internal - gateway-treafik: + gateway-traefik: build: context: . target: phraseanet-nginx @@ -60,7 +60,6 @@ services: - internal labels: - "traefik.enable=true" - - "traefik.docker.network=${PS_NETWORK_NAME}" - "traefik.http.routers.phraseanet.rule=Host(`${PHRASEANET_HOSTNAME}`)" - "traefik.http.routers.phraseanet.tls=true"