No description, website, or topics provided.
Clone or download
Latest commit 5693e08 Jan 13, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app fix(vue): api Jan 13, 2018
bin Add project Nov 10, 2017
docker fix(1-add-gitignore) Nov 16, 2017
src fix(vue): api Jan 13, 2018
tests/AppBundle/Controller Add project Nov 10, 2017
var fix(1-add-gitignore) Nov 16, 2017
web fix(1-add-gitignore) Nov 16, 2017
.babelrc fix(5-missing-files) Nov 17, 2017
.editorconfig fix(5-missing-files) Nov 17, 2017
.env.dist Update .env.dist Nov 17, 2017
.eslintignore fix(5-missing-files) Nov 17, 2017
.eslintrc.js fix(5-missing-files) Nov 17, 2017
.gitignore fix(1-add-gitignore) Nov 16, 2017
.stylelintrc fix(5-missing-files) Nov 17, 2017
LICENSE Add project Nov 10, 2017
README.md Update README.md Nov 10, 2017
composer.json Add project Nov 10, 2017
composer.lock Add project Nov 10, 2017
docker-compose.yml fix(vue): api Jan 13, 2018
package.json Add project Nov 10, 2017
phpunit.xml.dist Add project Nov 10, 2017
postcss.config.js Add project Nov 10, 2017
yarn.lock Add project Nov 10, 2017

README.md

DOCKER - SYMFONY - VUE.JS

Requirements

Get project

git clone git@github.com:eleven-labs/docker-symfony-vue.git && cd docker-symfony-vue

Change environment variable

cp .env.dist .env
# DATABASE
POSTGRES_DB=                This is name of database
POSTGRES_USER=              This is user of database
POSTGRES_PASSWORD=          This is password of database
POSTGRES_PORT=              This is the port of used by postgreSQL

# PORT WEB
WEB_PORT=                   This is web port of website
ELK_PORT=                   This is port of ELK

# SYMFONY
SECRET=                     This is the secret of Symfony

#SMTP
SMTP_USER=                  This is username of mail server
SMTP_PASSWORD=              This is password of mail server
SMTP_HOST=                  This is host of mail server
SMTP_TRANSPORT=             This is protocol transport of mail server

#REDIS
REDIS_DSN=                  This is DNS of Redis

Initialize project

  • Initialize project with script
bin/app init
  • Initialize project without script
docker-compose build --force-rm --no-cache
docker-compose up -d --force-recreate
docker-compose exec -T php chmod 777 -R /var/www/symfony/var/cache
docker-compose exec -T php chmod 777 -R /var/www/symfony/var/logs
docker-compose exec -T --user www-data php composer install -n
docker-compose exec -T --user www-data php bin/console doctrine:database:create --if-not-exists --no-interaction
docker-compose exec -T --user www-data php bin/console doctrine:schema:update --no-interaction --force
docker-compose exec -T --user www-data php bin/console doctrine:fixtures:load --no-interaction

Basic command with script

bin/app init            # Initialize project
bin/app start           # Start project
bin/app stop            # Stop project
bin/app bash            # Use bash inside the app container
bin/app exec            # Execute a command inside the app container
bin/app destroy         # Removes all the project Docker containers with their volumes
bin/app console         # Use the Symfony console
bin/app composer        # Use Composer inside the app container
bin/app tests           # Run test project inside the app container