Browse Source

php 添加etc目录和配置文件

master
blobt 5 years ago
parent
commit
f3dd4e45cf
  1. BIN
      .docker-compose.yml.swp
  2. 85
      docker-compose.yml
  3. 1
      php-fpm/etc/conf.d/docker-mongo.ini
  4. 1
      php-fpm/etc/conf.d/docker-php-ext-bcmath.ini
  5. 1
      php-fpm/etc/conf.d/docker-php-ext-bz2.ini
  6. 1
      php-fpm/etc/conf.d/docker-php-ext-calendar.ini
  7. 1
      php-fpm/etc/conf.d/docker-php-ext-dba.ini
  8. 1
      php-fpm/etc/conf.d/docker-php-ext-enchant.ini
  9. 1
      php-fpm/etc/conf.d/docker-php-ext-exif.ini
  10. 1
      php-fpm/etc/conf.d/docker-php-ext-gd.ini
  11. 1
      php-fpm/etc/conf.d/docker-php-ext-gettext.ini
  12. 1
      php-fpm/etc/conf.d/docker-php-ext-imagick.ini
  13. 1
      php-fpm/etc/conf.d/docker-php-ext-intl.ini
  14. 1
      php-fpm/etc/conf.d/docker-php-ext-mcrypt.ini
  15. 1
      php-fpm/etc/conf.d/docker-php-ext-memcached.ini
  16. 1
      php-fpm/etc/conf.d/docker-php-ext-mysqli.ini
  17. 1
      php-fpm/etc/conf.d/docker-php-ext-opcache.ini
  18. 1
      php-fpm/etc/conf.d/docker-php-ext-pcntl.ini
  19. 1
      php-fpm/etc/conf.d/docker-php-ext-pdo_mysql.ini
  20. 1
      php-fpm/etc/conf.d/docker-php-ext-redis.ini
  21. 1
      php-fpm/etc/conf.d/docker-php-ext-shmop.ini
  22. 1
      php-fpm/etc/conf.d/docker-php-ext-sockets.ini
  23. 1
      php-fpm/etc/conf.d/docker-php-ext-sodium.ini
  24. 1
      php-fpm/etc/conf.d/docker-php-ext-sysvmsg.ini
  25. 1
      php-fpm/etc/conf.d/docker-php-ext-sysvsem.ini
  26. 1
      php-fpm/etc/conf.d/docker-php-ext-sysvshm.ini
  27. 1
      php-fpm/etc/conf.d/docker-php-ext-zip.ini
  28. 1943
      php-fpm/etc/php.ini-development
  29. 1945
      php-fpm/etc/php.ini-production
  30. 2
      php-fpm/run.sh

BIN
.docker-compose.yml.swp

85
docker-compose.yml

@ -0,0 +1,85 @@
version: "2"
services:
web:
image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/nginx
ports:
- "88:80"
restart: always
volumes:
- ./app:/www/web
- ./services/web/nginx/conf:/etc/nginx
- ./services/web/nginx/logs:/www/web_logs
networks:
- code-network
depends_on:
- php
mysql:
image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/mysql
restart: always
volumes:
- ./db/mysql/data:/var/lib/mysql
- ./db/mysql/example_db:/var/example_db
- ./db/mysql/conf.d:/etc/mysql/conf.d
restart: always
environment:
- MYSQL_ROOT_PASSWORD=fecshopxfd3ffaads123456
- MYSQL_DATABASE=fecshop
networks:
- code-network
php:
image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/php-7.1.13-fpm_2
restart: always
volumes:
- ./app:/www/web
- ./services/php/etc/php7.1.13.ini:/usr/local/etc/php/conf.d/php7.1.13.ini
depends_on:
- mongodb
- mysql
networks:
- code-network
mongodb:
image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/mongo
restart: always
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/data/logs
volumes:
- ./db/mongodb/data:/data/db
- ./db/mongodb/example_db:/data/example_db
- ./db/mongodb/logs:/data/logs
networks:
- code-network
xunsearch:
image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/xunsearch
restart: always
volumes:
- ./db/xunsearch/data:/usr/local/xunsearch/data
networks:
- code-network
redis:
image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/redis
restart: always
environment:
REDIS_PASS_FILE: /run/secrets/redis-password
command: [
"bash", "-c",
'
docker-entrypoint.sh
--requirepass "$$(cat $$REDIS_PASS_FILE)"
'
]
volumes:
- ./db/redis/etc/redis.conf:/usr/local/etc/redis/redis.conf
- ./db/redis/data:/data
- ./db/redis/etc/redis-password:/run/secrets/redis-password
networks:
- code-network
networks:
code-network:
driver: bridge

1
php-fpm/etc/conf.d/docker-mongo.ini

@ -0,0 +1 @@
extension=mongodb.so

1
php-fpm/etc/conf.d/docker-php-ext-bcmath.ini

@ -0,0 +1 @@
extension=bcmath.so

1
php-fpm/etc/conf.d/docker-php-ext-bz2.ini

@ -0,0 +1 @@
extension=bz2.so

1
php-fpm/etc/conf.d/docker-php-ext-calendar.ini

@ -0,0 +1 @@
extension=calendar.so

1
php-fpm/etc/conf.d/docker-php-ext-dba.ini

@ -0,0 +1 @@
extension=dba.so

1
php-fpm/etc/conf.d/docker-php-ext-enchant.ini

@ -0,0 +1 @@
extension=enchant.so

1
php-fpm/etc/conf.d/docker-php-ext-exif.ini

@ -0,0 +1 @@
extension=exif.so

1
php-fpm/etc/conf.d/docker-php-ext-gd.ini

@ -0,0 +1 @@
extension=gd.so

1
php-fpm/etc/conf.d/docker-php-ext-gettext.ini

@ -0,0 +1 @@
extension=gettext.so

1
php-fpm/etc/conf.d/docker-php-ext-imagick.ini

@ -0,0 +1 @@
extension=imagick.so

1
php-fpm/etc/conf.d/docker-php-ext-intl.ini

@ -0,0 +1 @@
extension=intl.so

1
php-fpm/etc/conf.d/docker-php-ext-mcrypt.ini

@ -0,0 +1 @@
extension=mcrypt.so

1
php-fpm/etc/conf.d/docker-php-ext-memcached.ini

@ -0,0 +1 @@
extension=memcached.so

1
php-fpm/etc/conf.d/docker-php-ext-mysqli.ini

@ -0,0 +1 @@
extension=mysqli.so

1
php-fpm/etc/conf.d/docker-php-ext-opcache.ini

@ -0,0 +1 @@
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20180731/opcache.so

1
php-fpm/etc/conf.d/docker-php-ext-pcntl.ini

@ -0,0 +1 @@
extension=pcntl.so

1
php-fpm/etc/conf.d/docker-php-ext-pdo_mysql.ini

@ -0,0 +1 @@
extension=pdo_mysql.so

1
php-fpm/etc/conf.d/docker-php-ext-redis.ini

@ -0,0 +1 @@
extension=redis.so

1
php-fpm/etc/conf.d/docker-php-ext-shmop.ini

@ -0,0 +1 @@
extension=shmop.so

1
php-fpm/etc/conf.d/docker-php-ext-sockets.ini

@ -0,0 +1 @@
extension=sockets.so

1
php-fpm/etc/conf.d/docker-php-ext-sodium.ini

@ -0,0 +1 @@
extension=sodium.so

1
php-fpm/etc/conf.d/docker-php-ext-sysvmsg.ini

@ -0,0 +1 @@
extension=sysvmsg.so

1
php-fpm/etc/conf.d/docker-php-ext-sysvsem.ini

@ -0,0 +1 @@
extension=sysvsem.so

1
php-fpm/etc/conf.d/docker-php-ext-sysvshm.ini

@ -0,0 +1 @@
extension=sysvshm.so

1
php-fpm/etc/conf.d/docker-php-ext-zip.ini

@ -0,0 +1 @@
extension=zip.so

1943
php-fpm/etc/php.ini-development
File diff suppressed because it is too large
View File

1945
php-fpm/etc/php.ini-production
File diff suppressed because it is too large
View File

2
php-fpm/run.sh

@ -2,4 +2,4 @@
docker ps
docker stop php
docker rm php
docker run -d --name php -v $PWD/../nginx/www:/www -p 9000:9000 php7.3-fpm-blobt
docker run -d --name php -v $PWD/../nginx/www:/www -v $PWD/etc:/usr/local/etc/php -p 9000:9000 pay46/php7.3
Loading…
Cancel
Save