Just getting to grips with balenaCloud and have an issue where a multi-container system does not appear to honour the ‘depends_on’ flag. I have had a good search of this forum and don’t seem to find anything that resolves this issue.
I have a python service called ‘frontend’ and another called ‘wpe’ which is the full-screen WebKit browser. The wpe service has the ‘depends_on’ set as frontend, but on reboot or refresh it seems to load without waiting for the python service to fully start (and thus a blank screen). If I manually restart the wpe service, then it loads as expected.
What options are there to have the service wait until the python main has started and, even better, restart every time the python service restarts?
Current docker-compose.yml is:
version: '2' services: frontend: restart: always build: ./frontend privileged: true network_mode: host expose: - "8080" wpe: restart: always build: ./wpe privileged: true network_mode: host depends_on: - frontend