Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caiodgallo/docker-symfony
This project is a simple bash script to setup a docker environment, with docker compose, for a Symfony project.
https://github.com/caiodgallo/docker-symfony
apache docker mysql nginx php postgresql symfony
Last synced: 7 days ago
JSON representation
This project is a simple bash script to setup a docker environment, with docker compose, for a Symfony project.
- Host: GitHub
- URL: https://github.com/caiodgallo/docker-symfony
- Owner: CaioDGallo
- Created: 2022-09-15T13:23:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-30T20:00:01.000Z (about 2 years ago)
- Last Synced: 2024-03-27T00:21:43.307Z (8 months ago)
- Topics: apache, docker, mysql, nginx, php, postgresql, symfony
- Language: Shell
- Homepage:
- Size: 61.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker-Symfony
This project is a simple bash script to setup a docker environment, with docker compose, for a Symfony project.
## Tech Stack Available
- Symfony Versions: `v6.1.*`, `v6.0.*` and `v5.4.*`
- PHP Versions: `8.1`, `8.0.2` and `7.2.5`
- Databases: `PostgreSQL` or `MySQL`
- Webserver: `Nginx` or `Apache`
- Supports localhost (port 80) and custom vhosts for both webservers## Download
- Ubuntu and Debian based distros
> Note: It does need `root` permission (sudo) for some file copying and permission changes
```sh
bash <(curl -s https://raw.githubusercontent.com/CaioDGallo/docker-symfony/main/install.sh)
```## Setup
Docker-Symfony requires [Docker](https://docs.docker.com/engine/install/) to run.
### Ubuntu/WSL2
- Run the `docker-symfony PROJECT_PATH` command and follow the instructions.
- If you choose to use custom vhosts, don't forget to add them to your hosts file:
- `/etc/hosts` for Ubuntu
- `C:\Windows\System32\Drivers\etc\hosts` on the Windows host machine for WSL2 installations.![VHOSTS](docs/vhosts.png?raw=true "vhosts instruction")
## Uninstall
- To remove Docker-Symfony from your system run `docker-symfony --uninstall`
> Note: It needs `root` permission