Closed KerberosMorphy closed 3 years ago
For an unknow reason, if I clone this repo, and execute the following command without any change:
> cd /compose > docker-compose -f mysql.yml up
I got the following error:
pypicloud_1 | sh: 1: /wait-for: not found pypicloud_1 exited with code 127
I've try a lot of things to make it works, I end up using restart: on-failure to skip the wait-for.
restart: on-failure
wait-for
Here my final setup:
services: pypicloud: command: uwsgi --die-on-term /etc/pypicloud/config.ini restart: on-failure depends_on: - mysql image: stevearc/pypicloud:1.3.1 ports: - "8080:8080" env_file: - base_config.env - file_storage_config.env - sql_cache_config.env - sql_auth_config.env - beaker_config.env mysql: image: mysql environment: MYSQL_DATABASE: pypi MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
Did someone know why the wait-for isn't working and how to make it works?
The weirdest part is while using:
services: pypicloud: command: ls -lah /wait-for
It did found it:
compose-pypicloud-1 | -rwxrwxrwx 1 root root 2.8K Oct 13 14:42 /wait-for
sorry, wrong repo
For an unknow reason, if I clone this repo, and execute the following command without any change:
I got the following error:
I've try a lot of things to make it works, I end up using
restart: on-failure
to skip thewait-for
.Here my final setup:
Did someone know why the
wait-for
isn't working and how to make it works?The weirdest part is while using:
It did found it: