12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- version: "3"
-
- services:
- webserver:
- image: 7.2.x-webserver
- build:
- context: ./bin/webserver
- container_name: '7.2.x-webserver'
- restart: 'always'
- ports:
- - "${HOST_MACHINE_UNSECURE_HOST_PORT}:80"
- - "${HOST_MACHINE_SECURE_HOST_PORT}:443"
- links:
- - mysql
- volumes:
- - ${DOCUMENT_ROOT-./www}:/var/www/html
- - ${PHP_INI-./config/php/php.ini}:/usr/local/etc/php/php.ini
- - ${VHOSTS_DIR-./config/vhosts}:/etc/apache2/sites-enabled
- - ${LOG_DIR-./logs/apache2}:/var/log/apache2
- mysql:
- build: ./bin/mysql
- container_name: '5.7-mysql'
- restart: 'always'
- ports:
- - "${HOST_MACHINE_MYSQL_PORT}:3306"
- volumes:
- - ${MYSQL_DATA_DIR-./data/mysql}:/var/lib/mysql
- - ${MYSQL_LOG_DIR-./logs/mysql}:/var/log/mysql
- environment:
- MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE: ${MYSQL_DATABASE}
- MYSQL_USER: ${MYSQL_USER}
- MYSQL_PASSWORD: ${MYSQL_PASSWORD}
- phpmyadmin:
- image: phpmyadmin/phpmyadmin
- container_name: 'phpmyadmin'
- links:
- - mysql
- environment:
- PMA_HOST: mysql
- PMA_PORT: 3306
- ports:
- - '8080:80'
- volumes:
- - /sessions
|