This is my compose file.
Note: I set ‘deploy’ as I wanted to see if assigning resources to containers would fix the issue of having a hard time starting the 7.3.4 Environment in a job. The slowness was before this setting just the same.
version: "3.8"
services:
universal:
container_name: universal
image: ironmansoftware/universal:latest
platform: linux/amd64
restart: always
deploy:
resources:
limits:
cpus: '1'
#memory: 500M
reservations:
cpus: '0.10'
#memory: 20M
volumes:
- ./universal-data:/root
- type: bind
source: /media/storage
target: /media-storage
- type: bind
source: /home/steven/docker
target: /docker-storage
- type: bind
source: /mnt/shield
target: /shield
ports:
- 8082:5000
extra_hosts:
- "host.docker.internal:host-gateway"
So should I set this in the compose file then?
environment:
UniversalAutomation__JobHandshakeTimeout: 30
I mean, in the compose file is OK but seeing this is a setting of PSU specifically and there is a settings file just for it, I would say that the primary source is the json file meant for it and a fallback could be this environment setting in the docker compose file.
Please let me know if you need anything else to debug this setting and the general slowness of PSU.
EDIT: I just ran the same code you posted to show all the values. I did this after adding the environment variable setting in my compose file and re-starting the container.
[information] Env Var: 30
[information] Config Setting: 30
[information] Database Setting: 15
[information] Using Database setting: 15
Indeed, the UI shows 15 still. Which one will actually be used? The DB one? And what is the proper way to set this once and for all, no differences and guesswork, just me setting that value, restart PSU and move on. There has to be a way to set this in a predictable way, right?