123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- version: '3.2'
- services:
- nginx:
- image: "${NGINX_VERSION}"
- ports:
- - 80:80
- - 443:443
- volumes:
- - ./log/nginx:/var/log/nginx
- - ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
- - ./etc/nginx/conf.d:/etc/nginx/conf.d
- - ./etc/nginx/ssl:/etc/nginx/ssl
- - ./wwwroot:/var/www
- environment:
- ENABLE_CRONTAB: "true"
- TZ: ${TZ}
- restart: on-failure
- php-fpm:
- # image: "${PHP_VERSION}"
- build: ./Docker/php-fpm/
- volumes:
- - ./etc/php-fpm/php-fpm.ini:/usr/local/etc/php-fpm.ini
- # - ./etc/php-fpm/crontabs:/etc/crontabs
- - ./wwwroot:/var/www
- environment:
- ENABLE_CRONTAB: "true"
- TZ: ${TZ}
- restart: on-failure
- mysql:
- image: "${MYSQL_VERSION}"
- # command: --default-authentication-plugin=mysql_native_password
- volumes:
- # - ./etc/mysql/my.cnf:/etc/my.cnf
- # - ./etc/mysql/my.cnf.d:/etc/my.cnf.d
- - ./data/mysql/databases:/var/lib/mysql
- environment:
- MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
- MYSQL_ROOT_HOST: "%"
- TZ: ${TZ}
- restart: on-failure
- phpmyadmin:
- image: "${PMA_VERSION}"
- ports:
- - 8081:80
- depends_on:
- - mysql
- environment:
- PMA_HOST: mysql
- TZ: ${TZ}
- restart: on-failure
- # redis:
- # image: "${REDIS_VERSION}"
- # volumes:
- # - ./data/redis/data:/data:rw
- # environment:
- # TZ: ${TZ}
- # restart: on-failure
|