8000 updated readme · ger86/symfony-docker@8244543 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8244543

Browse files
committed
updated readme
1 parent 5916925 commit 8244543

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

Readme.md

Lines changed: 11 additions & 13 deletions
-
2. Run `docker-compose up -d`
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,32 @@
1-
# 🐳 Docker + PHP 7.4 + MySQL + Nginx + Symfony 5 Boilerplate
1+
# 🐳 Docker + PHP 8.0 + MySQL + Nginx + Symfony 5.3 Boilerplate
22

33
## Description
44

5-
This is a complete stack for running Symfony 5 into Docker containers using docker-compose tool.
5+
This is a complete stack for running Symfony 5.3 into Docker containers using docker-compose tool with [docker-sync library](https://docker-sync.readthedocs.io/en/latest/).
66

7-
It is composed by 3 containers:
7+
It is composed by 4 containers:
88

99
- `nginx`, acting as the webserver.
10-
- `php`, the PHP-FPM container with the 7.4 PHPversion.
10+
- `php`, the PHP-FPM container with the 8.0 version of PHP.
1111
- `db` which is the MySQL database container with a **MySQL 8.0** image.
12+
- `symfony_docker_app_sync` to sync files using library `docker-sync `.
1213

1314
## Installation
1415

1516
1. 😀 Clone this rep.
1617

17
18+
2. Create the file `./.docker/.env.nginx.local` using `./.docker/.env.nginx` as template. The value of the variable `NGINX_BACKEND_DOMAIN` is the `server_name` used in NGINX.
1819

19-
3. The 3 containers are deployed:
20+
3. Go inside folder `./docker` and run `docker-sync-stack start` to start containers.
2021

21-
```
22-
Creating symfony-docker_db_1 ... done
23-
Creating symfony-docker_php_1 ... done
24-
Creating symfony-docker_nginx_1 ... done
25-
```
22+
4. You should work inside the `php` container. This project is configured to work with [Remote Container](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension for Visual Studio Code, so you could run `Reopen in container` command after open the project.
2623

27-
4. Use this value for the DATABASE_URL environment variable of Symfony:
24+
5. Inside the `php` container, run `composer install` to install dependencies from `/var/www/symfony` folder.
25+
26+
6. Use the following value for the DATABASE_URL environment variable:
2827

2928
```
3029
DATABASE_URL=mysql://app_user:helloworld@db:3306/app_db?serverVersion=5.7
3130
```
3231

3332
You could change the name, user and password of the database in the `env` file at the root of the project.
34-

0 commit comments

Comments
 (0)
0