12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- version: '3.2'
- services:
- nginx:
- container_name: nginx_rplf
- 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:
- container_name: php_rplf
- # 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:
- container_name: mysql_rplf
- 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:
- container_name: phpmyadmin_rplf
- 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
|