I cloned my working project. Then I did a docker-compose build which was successful. Now I do docker-compose up and three containers exit with an error
nginx_1 | exec /usr/local/bin/entrypoint: exec format error
crm-php-fpm_1 | exec /usr/local/bin/tini_entrypoint: exec format error
clickhouse_1 | exec /entrypoint.sh: exec format error
Perhaps the problem is that I'm running on M1 processes, as I read, rebuilding the container can help, but I have little experience with docker, so I ask for your help.
If necessary, I can add the contents of the necessary files.
Below is the dockerfile of one of the erroneous containers. (nginx_1)
FROM registry.is74.ru/docker/nginx:1.20.1-alpine-r1
COPY ./default.conf /tmp/templates/conf.d/default.conf
WORKDIR /var/www