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.
 
 
 
 
 
Denis Ranneft fa5cfab7f5
updates around README, .env, Dockerfile
2 years ago
app updates around README, .env, Dockerfile 2 years ago
docker updates around README, .env, Dockerfile 2 years ago
.env.example updates around README, .env, Dockerfile 2 years ago
.gitignore exclude pgdata 2 years ago
README.md updates around README, .env, Dockerfile 2 years ago
docker-compose.yml small updated around docker/compose/readme 2 years ago

README.md

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).