Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rshkdl/spacecraft-sf6
A small demo project about creating custom spaceships !
https://github.com/rshkdl/spacecraft-sf6
php8 symfony
Last synced: 1 day ago
JSON representation
A small demo project about creating custom spaceships !
- Host: GitHub
- URL: https://github.com/rshkdl/spacecraft-sf6
- Owner: RSHKDL
- Created: 2022-04-11T15:16:20.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-01T09:45:26.000Z (10 months ago)
- Last Synced: 2024-02-01T10:53:06.092Z (10 months ago)
- Topics: php8, symfony
- Language: PHP
- Homepage:
- Size: 1020 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Requirements
- [Docker](https://www.docker.com/)
- [Docker Compose](https://docs.docker.com/compose/)### Stack
- PHP 8.1
- NGINX
- MySQL 8
- Symfony 6.4The images are build upon [Alpine Linux](https://www.alpinelinux.org/). If you want to update the Dockerfiles,
you need to refer to the Alpine Linux documentation.### Installation
1. Clone this repository.
2. Create your local config files:
```
cp docker-env.dist docker-en
cp docker-compose.yml.dist docker-compose.yml
cp .env .env.local
```
3. Update these files and replace the `` with your data.
4. Build, start and install the project with make:
```
make project-build
make composer-install
make init-database
```
5. In the `docker\nginx\symfony.conf`, update the `server_name` keys to fit your needs.
6. Report these changes in your `/etc/hosts` file.
7. Done, go to your `localhost:` or your configured domain:
```
Exemples:
https://localhost:4433
https://dev.mycustomdomain:4433 (if custom port)
https://dev.mycustomdomain (if default 443 port)
```### Troubleshooting
🤕 When installing/updating the database , if you have an error like this
`SQLSTATE[HY000] [1045] Access denied for user 'symfony'@'172.24.0.3' (using password: YES)`
make a backup of the data, remove everything under data/mysql, then rebuild the project.