-
Configure app params
- Copy
.env.exampleto.env - Edit relevant variables in
.env
- Copy
-
Configure composer credentials
- Copy
data/composer/auth.json.exampletodata/composer/auth.json - Edit
data/composer/auth.jsonand add github (or other necessary) credentials in the line
"github.com": "<your-token-here>" - Copy
-
Setup
- Spin up containers
docker-compose up -d
- Enter fpm container
docker exec -it satis_fpm_1 bash - Use composer to install code
composer install
- Set necessary file permissions
chown -R daemon:daemon /build /composer
- Spin up containers
If your host environment does not have daemon user, use --user 1:1
docker exec -it --user $(id daemon -u):$(id daemon -g) satis_fpm_1 bashcomposer list satis for available satis commands.
Example:
- Init:
composer satis:init --name <company-name> --homepage <homepage-url> - Add a repository:
composer satis:add --type vcs --name <repository-full-name> <repository-url> - Rebuild a repository by name:
composer satis:build satis.json /build <repository-full-name> - Rebuild a repository by url:
composer satis:build --repository-url <repository-url> satis.json /build
-
satis.json- In project:
src/satis.json - In fpm container:
/app/satis.json
- In project:
-
Satis output directory
- In project:
data/build - In fpm container:
/build - In nginx container:
/var/www/satis
- In project:
Run the following command in host:
sudo chown -R 1:1 data/buildCannot create cache directory /composer/repo/..., or directory is not writable. Proceeding without cache. See also cache-read-only config if your filesystem is read-only.
Run the following command in host:
sudo chown -R 1:1 data/composer