1 Star 0 Fork 0

纸喵软件 / docker-worker-pc-compose

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
docker-compose.yml 1.36 KB
Copy Edit Web IDE Raw Blame History
倒霉狐狸(公司PC) authored 2019-02-18 11:26 . 关闭镜像自动重启
# cat docker-compose.yml
version: '3'
networks:
dev:
services:
mysql:
image: mysql:8
volumes:
- "D:/docker/mysql/.data:/var/lib/mysql"
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: root
networks:
- dev
ports:
- "3306:3306"
# 解决win10以下初始化报错的问题
command: "--innodb_use_native_aio=0"
# restart: always
redis:
image: redis:5
volumes:
- "D:/docker/redis/.data:/data"
- "D:/docker/redis/redis.conf:/usr/local/etc/redis.conf"
environment:
TZ: Asia/Shanghai
networks:
- dev
ports:
- "6379:6379"
# restart: always
command: ["redis-server", "/usr/local/etc/redis.conf"]
php7.3-fpm-dev:
image: zhimiao/php:7.3-fpm-dev
volumes:
- "D:/docker/wwwroot:/var/www/html"
- "D:/docker/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
environment:
TZ: Asia/Shanghai
networks:
- dev
ports:
- "9073:9000"
# restart: always
nginx:
image: nginx:1.15
depends_on:
- php7.3-fpm-dev
volumes:
- "D:/docker/nginx/vhost:/etc/nginx/conf.d"
- "D:/docker/nginx/vhost/docker.server:/etc/nginx/docker.server"
- "D:/docker/wwwroot:/usr/share/nginx/"
environment:
TZ: Asia/Shanghai
networks:
- dev
ports:
- "1300-1400:1300-1400"
# restart: always

Comment ( 0 )

Sign in for post a comment

Docker
1
https://gitee.com/zhimiao/docker-worker-pc-compose.git
git@gitee.com:zhimiao/docker-worker-pc-compose.git
zhimiao
docker-worker-pc-compose
docker-worker-pc-compose
master

Search

103611 48b8ff67 1899542 103622 4d02230c 1899542