Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.idea
.vscode
docker-compose.yml
docker-compose.yml
45 changes: 22 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This repository contains the basic configuration to run Symfony applications with MySQL database

## Content
- PHP-APACHE container running version 8.2
- PHP-APACHE container running version 8.3
- MySQL container running version 8.2.0

## Instructions
Expand All @@ -20,6 +20,8 @@ This repository contains the basic configuration to run Symfony applications wit
> Replace all the occurrences of `symfony-app` in the project with a more meaningful name.
> You can use your IDE's find and replace option to complete this task.

> [!TIP]
> Select your Symfony `version` updating the URL.

1. Build and start the containers:
```shell
Expand All @@ -29,28 +31,25 @@ This repository contains the basic configuration to run Symfony applications wit
```shell
make ssh
```
3. Create a Symfony project using the CLI:
```shell
symfony new --no-git --dir project
3. Download the composer.json from [Symfony Skeleton](https://github.com/symfony/skeleton):

<details open>
<summary>Version 6.4 (LTS)</summary>

```shell
wget https://raw.githubusercontent.com/symfony/skeleton/6.4/composer.json
```
4. Move all the content in the `project` folder to the root of the repository:
```shell
mv project/{*,.*} . && rm -r project/
</details>
<details>
<summary>Version 7.1</summary>

```shell
wget https://raw.githubusercontent.com/symfony/skeleton/7.1/composer.json
```
5. Add the content of `.gitignore` file to the root one, it should look like this:
```text
.idea
.vscode
docker-compose.yml

###> symfony/framework-bundle ###
/.env.local
/.env.local.php
/.env.*.local
/config/secrets/prod/prod.decrypt.private.php
/public/bundles/
/var/
/vendor/
###< symfony/framework-bundle ###
</details>
4. Install with composer

```shell
composer install --no-interaction
```
6. Once you have installed you Symfony application go to http://localhost:1000
5. Once you have installed you Symfony application go to http://localhost:1000