Browse Source

docker compose 基本测试完成

master
blobt 5 years ago
parent
commit
bf62787b11
  1. BIN
      .docker-compose.yml.swp
  2. 79
      docker-compose.yml
  3. 0
      php-fpm/etc/php.ini

BIN
.docker-compose.yml.swp

79
docker-compose.yml

@ -1,85 +1,68 @@
version: "2" version: "2"
services: services:
web: web:
image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/nginx
ports:
image: nginx
ports:
- "88:80" - "88:80"
restart: always restart: always
volumes: volumes:
- ./app:/www/web
- ./services/web/nginx/conf:/etc/nginx
- ./services/web/nginx/logs:/www/web_logs
- ./nginx/conf:/etc/nginx
- ./nginx/log:/var/log/nginx
- ./nginx/www:/usr/share/nginx/html
networks: networks:
- code-network
- dlc-dev-network
depends_on: depends_on:
- php - php
mysql: mysql:
image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/mysql
image: mysql
restart: always restart: always
volumes: volumes:
- ./db/mysql/data:/var/lib/mysql
- ./db/mysql/example_db:/var/example_db
- ./db/mysql/conf.d:/etc/mysql/conf.d
- ./mysql/etc:/etc/mysql
- ./mysql/data:/var/lib/mysql
restart: always restart: always
environment: environment:
- MYSQL_ROOT_PASSWORD=fecshopxfd3ffaads123456
- MYSQL_DATABASE=fecshop
- MYSQL_ROOT_PASSWORD=73937393
- MYSQL_DATABASE=antsys
networks: networks:
- code-network
- dlc-dev-network
php: php:
image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/php-7.1.13-fpm_2
image: pay46/php7.3
restart: always restart: always
volumes: volumes:
- ./app:/www/web
- ./services/php/etc/php7.1.13.ini:/usr/local/etc/php/conf.d/php7.1.13.ini
- ./nginx/www:/www
- ./php-fpm/etc:/usr/local/etc/php
depends_on: depends_on:
- mongodb - mongodb
- mysql - mysql
- redis
networks: networks:
- code-network
- dlc-dev-network
mongodb: 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
image: mongo
restart: always restart: always
volumes: volumes:
- ./db/xunsearch/data:/usr/local/xunsearch/data
- ./mongodb/data:/data/db
- ./mongodb/log:/data/logs
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=73937393
networks: networks:
- code-network
- dlc-dev-network
redis: redis:
image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/redis
image: redis
restart: always restart: always
environment:
REDIS_PASS_FILE: /run/secrets/redis-password
command: [ command: [
"bash", "-c", "bash", "-c",
' '
docker-entrypoint.sh docker-entrypoint.sh
--requirepass "$$(cat $$REDIS_PASS_FILE)"
--requirepass "73937393"
' '
] ]
volumes: 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
- ./redis/etc:/usr/local/etc/redis
- ./redis/data:/data
networks: networks:
- code-network
- dlc-dev-network
networks: networks:
code-network:
driver: bridge
dlc-dev-network:
driver: bridge

php-fpm/etc/php.ini-development → php-fpm/etc/php.ini

Loading…
Cancel
Save