https://github.com/nicklaswallgren/symfony-docker-starter
Symfony framework starter
https://github.com/nicklaswallgren/symfony-docker-starter
docker docker-compose php php7 symfony symfony3
Last synced: 3 months ago
JSON representation
Symfony framework starter
- Host: GitHub
- URL: https://github.com/nicklaswallgren/symfony-docker-starter
- Owner: NicklasWallgren
- Created: 2017-04-15T11:15:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T08:44:35.000Z (about 9 years ago)
- Last Synced: 2025-08-30T05:37:15.231Z (10 months ago)
- Topics: docker, docker-compose, php, php7, symfony, symfony3
- Language: Makefile
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Symfony Docker Starter
> An Symfony starter kit featuring
[Symfony](https://symfony.com/) and
[Docker](https://www.docker.com/)
([PHP],
[MySQL],
[Memcached],
and [Nginx])
This seed repo serves as an Symfony starter for anyone looking to get up and running with Symfony and PHP fast. Using Docker for building our environment.
* Ready to go development environment using Docker for working with Symfony.
* A great Symfony seed repo for anyone who wants to start their project.
### Quick start
**Make sure you have Docker version >= 17.04.0**
```bash
# clone our repo
# --depth 1 removes all but one .git commit history
git clone --depth 1 --recursive https://github.com/NicklasWallgren/symfony-docker-starter.git symfony-docker-starter
# change directory to our repo
cd symfony-docker-starter
# start the docker containers. The first boot will take some time
make
```
go to [http://localhost](http://localhost) or [http://](http://)
# Getting Started
## Commands
### Start containers
```bash
make
```
### Stop containers
```bash
make halt
```
### Start individual container
```bash
make start [php-fpm|php-cli|nginx|mysql|memcached]
```
### Stop individual container
```bash
make stop [php-fpm|php-cli|nginx|mysql|memcached]
```
### Update composer dependencies
```bash
make update-project
```
### Access Symfony cli
```bash
# Access the php container
make bash-cli
# Launch the symfony cli
php ./symfony/bin/console
```
### Access MySQL cli
```bash
make mysql-cli
```
### Access PHP container bash
```bash
make bash-php
```
### Access Nginx container bash
```bash
make bash-nginx
```
### Access PHP-FPM container bash
```bash
make bash-fpm
```
### Access Memcached container bash
```bash
make bash-memcached
```
### Access MySQL container bash
```bash
make bash-mysql
```
### Check container status
```bash
make status
```
# Contributing
I'll accept pretty much everything so feel free to open a Pull-Request