Dockerize php/ts monolith for quick telegram mini app development start.
Note
The work is still in progress.
If you haven't already install Docker on your local development machine: https://docs.docker.com/engine/install/
Run the following commands to get the environment up and running:
docker compose upInstall php and javascript dependencies:
docker compose exec php composer install
docker compose run --rm node npm installBuild react app:
docker compose run --rm node npm run buildExecute migrations:
docker compose exec php php bin/console doctrine:migration:migrateModify /etc/hosts file:
$ sudo nano /etc/hosts
127.0.0.1 localhost
127.0.0.1 mini-app.locGenerate certificate/key for https protocol:
openssl req -x509 -out docker/nginx/ssl/mini-app.loc.crt -keyout docker/nginx/ssl/mini-app.loc.key \
-newkey rsa:2048 -nodes -sha256 \
-subj '/CN=mini-app.loc' -extensions EXT -config <( \
printf "[dn]\nCN=mini-app.loc\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:mini-app.loc\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")