-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
33 lines (32 loc) · 923 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: "2"
services:
mysqldb:
image: mysql:$MYSQL_VERSION
container_name: $MYSQL_NAME
ports:
- "${HOST_MYSQL_PORT}:3306"
volumes:
- ./db-backups:/var/mysql/backups
- ./db-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD
MYSQL_DATABASE: $DB_NAME
MYSQL_USER: $DB_USER
MYSQL_PASSWORD: $DB_PASSWORD
restart: always
web:
build: apachephp
container_name: $WEB_NAME
volumes:
- /var/www/html/drupal_demo
- ./docroot:/var/www/html
- ./config:$CONFIG_DIRECTORY
- ./apache_log:$APACHE_LOGS
- ./ssl_certs:$SSL_VOLUME
- ./apachephp/config/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./apachephp/config/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
ports:
- "${HOST_APACHE_PORT}:80"
- "${HOST_HTTPS_PORT}:443"
volumes:
db-data: