12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- version: '3.2'
- services:
- nginx:
- name: "docker-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:
- name: "docker-php"
- image: "${PHP_VERSION}"
- build: ./Docker/php-fpm/
- volumes:
- - ./etc/php-fpm/php-fpm.ini:/usr/local/etc/php-fpm.ini
- - ./wwwroot:/var/www
- environment:
- ENABLE_CRONTAB: "true"
- TZ: ${TZ}
- restart: on-failure
- mysql:
- name: "docker-mysql"
- image: "${MYSQL_VERSION}"
- volumes:
- - ./data/mysql/databases:/var/lib/mysql
- environment:
- MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
- MYSQL_ROOT_HOST: "%"
- TZ: ${TZ}
- restart: on-failure
- phpmyadmin:
- name: "docker-phpmyadmin"
- image: "${PMA_VERSION}"
- ports:
- - 8081:80
- depends_on:
- - mysql
- environment:
- PMA_HOST: mysql
- TZ: ${TZ}
- restart: on-failure
|