You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trial/README.md

24 lines
917 B
Markdown

# 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 "trial 127.0.0.1" >> /etc/hosts
```
Run `docker compose up -d`
Run `docker compose exec --workdir=/var/www/trial php /usr/local/bin/composer install`
To access the test then just simply visit `https://trial:8443` (you need to agree with self-signed cert).