Docker composed image containing php-fpm, postgres and nginx
docker-compose up
Working directory is public
- 80 - Nginx HTTP
- 5432 - Postgres
Each service ahas its own configuration. To run SQL on image initialization - put your SQL under docker/postgres/configuration/init.sql In case of troubles with SELINUX and mounting volumes use this "hack" - put :Z or :z at the end on the volume mount directive in docker-compose.yml
Example:
- Before: - ./application/:/var/www/html
- After: - ./application/:/var/www/html:Z