|
@ -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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|