keystore.path on docker

32 views
Skip to first unread message

Marci

unread,
Jan 4, 2022, 6:24:26 AM1/4/22
to structr
Hi structr-support, and Happy new Year everybody:)
I am running structr on a docker instance. I have been trying to figure out how i set up a persistent keystore-path path for my certificate.

Is there a way to set the structr.config-File directly and how? Unfotunately, the information from the UI structr/config doesn't persist after a restart. I played around with the docker-compose.yml, but this doesn't help. Is there a mistake that I miss or what is the procedure in order to set a web-certificate for structr running under docker?
Here my .yml-File (I removed the entries for neo4j because this is running elsewhere):
******
version: '3.3'
services:
   structr:
    image: structr/structr:4.0.0
    ports:
     - "8082:8082"
    environment:
      - AGREE_TO_STRUCTR_PRIVACY_POLICY=yes

    # Add volumes for data retention
    volumes:

      # folders
      - ./volumes/structr-files:/var/lib/structr/files
      - ./volumes/structr-repository:/var/lib/structr/repository
      - ./volumes/structr-logs:/var/lib/structr/logs
      - ./volumes/structr-lib:/usr/lib/structr

      # config files for initial configuration of Structr
      - ./structr/structr.conf:/var/lib/structr/structr.conf
      - ./structr/license.key:/var/lib/structr/license.key
      - ./structr/memory.config:/var/lib/structr/bin/memory.config
      - ./structr/keystore.pks12:/usr/lib/structr/keystore.pks12

      # Put service into network so Structr and Neo4j can communicate
    networks:
      database:

volumes:
  structr-files:
  structr-repository:
  structr-logs:
  structr-lib:
  neo4j-database:
  neo4j-logs:


networks:
  database:
************

Kai Schwaiger

unread,
Jan 6, 2022, 4:12:04 AM1/6/22
to str...@googlegroups.com
Hello Marci and Happy New Year!

Do you mean that the configuration does not even survive a simple restart of the container or is the container rebuilt?

The basic structr.conf file should exist in the "structr" directory where the docker-compose.yml lives (if you are based on our example repository https://github.com/structr/docker-setup/ - which it looks like).

Or would it be enough to simple do the configuration in that file?

Best regards
Kai



https://structr.com
Kai Schwaiger
COO
kai.sc...@structr.com
Festnetz+49 69 / 3487287-80
Mobil+49 177 / 48 16 204
Structr GmbH
Hanauer Landstraße 291
60314 Frankfurt am Main
Deutschland / Germany
Geschäftsführer: Axel Morgner
Sitz der Ges.: Frankfurt a. M.
HR: AG Frankfurt a. M. HRB 92262
Umsatzsteuer-ID: DE 279486092 




--
You received this message because you are subscribed to the Google Groups "structr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to structr+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/structr/bb3dd816-8296-4034-b12f-34b716285f0en%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages