Sign inSign up

ricardosmg/php-fpm

By ricardosmg

Updated almost 7 years ago

Generic PHP FPM application

Image
0

1.3K

ricardosmg/php-fpm repository overview

# FOR LOCAL DEV

REDIS, PGSQL, Elasticsearch and ForestAdmin

docker-compose -f docker-compose.local.yml up -d

composer install

cd admin && npm install

DB_DRIVER=pdo_pgsql DB_USER=pt_api DB_PASS=1q2w3e4r%T DB_HOST=localhost DB_NAME=playertrader php vendor/bin/doctrine orm:schema-tool:update --force

Local Apache config - add to vhosts - these match the settings in docker-compose.local.yml

    SetEnv ENVIRONMENT 'dev'
    SetEnv DEBUG 'true'
    SetEnv API_KEY 'mv0V7DRaAN2wWBEX89plnPs91c2ChLvt'
    SetEnv API_URL http://player.trader
    SetEnv API_REDIS 'tcp://localhost:6379'
    SetEnv DB_DRIVER 'pdo_pgsql'
    SetEnv DB_USER 'pt_api'
    SetEnv DB_PASS '1q2w3e4r%T'
    SetEnv DB_HOST 'localhost'
    SetEnv DB_NAME 'playertrader'
    SetEnv LOG_DIR '../logs/'
    SetEnv ES_HOST 'localhost:9200'
   
    DocumentRoot "/route/to/api/web"
    ServerName player.trader
    LogLevel debug
    ErrorLog "../logs/player.trader-error.log"
    CustomLog "../logs/player.trader-access.log" common
</VirtualHost>```

Tag summary

Content type

Image

Digest

Size

240 MB

Last updated

almost 7 years ago

docker pull ricardosmg/php-fpm