# Trial project Make sure you have `docker` with `docker compose` installed. Copy `.env.example` file and fill in necessary env vars such as hostname or email (that one needed for self-signed cert for Caddy). You may want to change Postgres port, username and password - use corresponding env vars in `env`. Default ports are rewritten in `docker-compose.yml` and in `./docker/caddy/etc/Caddyfile`. **HTTP** port is 8000 and **HTTPS** port is 8443. In order to change listening ports of your desire please make sure you changed them in both places. To access the test you will need to write the server name in your `/etc/hosts` file. E.g. ``` ~ #> echo "127.0.0.1 trial" >> /etc/hosts ``` Run `docker compose up -d` Run `docker compose exec --workdir=/var/www/trial php /usr/local/bin/php ./bin/console cache:clear` Run `docker compose exec --workdir=/var/www/trial php /usr/local/bin/php ./bin/console doctrine:migrations:migrate --no-interaction` Run `docker compose exec --workdir=/var/www/trial php /usr/bin/yarn encore prod` To access the test then just simply visit `https://trial:8443` (you need to agree with self-signed cert).