Last active
February 14, 2018 22:01
-
-
Save amirkoklan/d1d544b2bc77b304ab2809d346de32bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: app | |
type: php:7.2 | |
build: | |
flavor: "none" | |
relationships: | |
database: "mysqldb:mysql" | |
redis: "rediscache:redis" | |
mq: "myrabbitmq:rabbitmq" | |
solr1: "solrsearch:solr" | |
dependencies: | |
ruby: | |
amqp-utils: "0.5.1" | |
web: | |
commands: | |
start: | | |
~/.dropbox-dist/dropboxd >/dev/null 2>&1 & | |
/usr/sbin/php-fpm7.2-zts | |
locations: | |
"/": | |
root: "web" | |
passthru: "/app.php" | |
expires: 600 | |
disk: 2048 | |
mounts: | |
"/var/cache": "shared:files/cache" | |
"/var/logs": "shared:files/logs" | |
"/web/var": "shared:files/files" | |
# Might want to not mount this one, it will slow down sessions, if you need cluster use memcached/redis! | |
"/var/sessions": "shared:files/sessions" | |
"/Dropbox": "shared:files/dropbox" | |
"/.dropbox": "shared:files/dropbox-meta" | |
hooks: | |
build: | | |
set -e | |
wget "https://www.dropbox.com/download?plat=lnx.x86_64" -O archive.tar | |
tar xzvf archive.tar && rm archive.tar | |
composer install --no-dev --prefer-dist --no-progress --no-interaction --optimize-autoloader | |
rm web/app_dev.php | |
#. ./.env | |
export SYMFONY_ENV='prod' | |
bin/console --env='prod' cache:clear | |
rm -rf app/cache/prod/* | |
deploy: | | |
set -e | |
export SYMFONY_ENV=prod | |
bin/console kaliop:migration:migrate --no-interaction --env prod | |
bin/console doctrine:migration:migrate --no-interaction --env prod | |
bin/console --env=$SYMFONY_ENV cache:clear | |
rm -rf app/cache/prod/* | |
runtime: | |
extensions: | |
- xsl | |
- imagick | |
- redis | |
- readline | |
- igbinary | |
- xmlrpc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment