What would be the best way to add PHP extensions like the GD library among others directly in docker-compose.yml?
My file is as below:
nginx:
image: tutum/nginx
ports:
- "80:80"
links:
- phpfpm
volumes:
- ./nginx/default:/etc/nginx/sites-available/default
- ./nginx/default:/etc/nginx/sites-enabled/default
- ./logs/nginx-error.log:/var/log/nginx/error.log
- ./logs/nginx-access.log:/var/log/nginx/access.log
phpfpm:
image: php:fpm
ports:
- "9000:9000"
volumes:
- ./public:/usr/share/nginx/html
- ./custom.ini:/usr/local/etc/php/conf.d/custom.ini
mysql:
image: mariadb
environment:
MYSQL_DATABASE: lista
MYSQL_USER: root
MYSQL_PASSWORD: 123
MYSQL_ROOT_PASSWORD: 123
command: mysqld --innodb-buffer-pool-size=1024M
ports:
- "3306:3306"