我正在使用 docker compose,我想打开一些扩展并进行编辑。所以基本上我想打开 php.ini 文件。我们如何才能做到这一点。但是我读到的一些解决方案说要在 docker_compose.yaml 中进行更改,我也在共享文件。我正在使用 php laravel 框架,并在 ubuntu 服务器上运行应用程序。非常感谢任何帮助。提前致谢。docker_compose.yaml 看起来像这样。
version: '3.7'
services:
php:
container_name: eesotne-fpm
build: ./deployment/fpm
image: eesotne-fpm
entrypoint: ./deployment/fpm/entrypoint.sh
volumes:
- ./:/eesotne
depends_on:
- mysql
- redis
mysql:
container_name: eesotne-mysql
image: mysql:5.7
volumes:
- "mysql_data:/var/lib/mysql"
restart: always
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=eestone
- MYSQL_USER=eestone
- MYSQL_PASSWORD=secret
admin:
container_name: eesotne-adminer
image: adminer
restart: always
depends_on:
- mysql
ports:
- 8081:8080
phpmyadmin:
container_name: eesotne-phpmyadmin
image: phpmyadmin/phpmyadmin
links:
- mysql
ports:
- 8080:80
environment:
MYSQL_USER: eesotne
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: eesotne
PMA_HOST: mysql
PMA_PORT: 3306
nginx:
container_name: eesotne-nginx
image: nginx
ports:
- "80:80"
volumes:
- ./deployment/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./:/eesotne
- ./deployment/logs/nginx:/var/log/nginx
depends_on:
- php
redis:
container_name: eesotne-redis
image: redis
volumes:
- redis_data:/data
万千封印
智慧大石