Software | Port |
---|---|
nginx | 8080 |
phpmyadmin | 8081 |
mysql | 3036 |
php | 9000 |
xdebug | 9001 |
redis | 6379 |
cp .env.example .env
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=db_name
DB_USERNAME=db_user
DB_PASSWORD=db_password
DB_ROOT_PASSWORD=secret
docker-compose up --build
docker-compose run --rm composer install
docker-compose run --rm artisan key:generate
docker-compose run --rm artisan jwt:secret
docker-compose run --rm artisan migrate --seed
https://documenter.getpostman.com/view/13861728/UyxnD4nA
- Buy AWS EC2 and create instance config settings port ( 80, 443)
- Install certbot to get https for domain ( run docker-compose build -> run init-letsencrypt.sh )
- Point public ipv4 to DNS
- Create Elastic IP to static ( because after shutdown or change server -> public ipv4 to change )
- Disabled firewall