forked from devgiants/docker-boilerplate-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (51 loc) · 1.18 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '2'
services:
mysql:
env_file: ./.env
image: mysql:5.7
ports:
- ${MYSQL_HOST_PORT}:${MYSQL_PORT}
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- ${MYSQL_HOST_VOLUME_PATH}:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- mysql:db
ports:
- ${PHP_MY_ADMIN_PORT}:80
environment:
MYSQL_USERNAME: ${MYSQL_USER}
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
php:
env_file: ./.env
build:
context: docker/images/php-fpm7.2
args:
UID: ${HOST_UID}
TIMEZONE: ${TIMEZONE}
volumes:
- ${WORDPRESS_HOST_RELATIVE_APP_PATH}:/var/www/html
# user: ${HOST_UID}:${HOST_GID}
apache:
env_file: ./.env
build:
context: docker/images/apache2.4
args:
UID: ${HOST_UID}
ports:
- ${APPLICATION_WEB_PORT}:80
environment:
FPM_HOST: php:9000
XDEBUG_CONFIG: remote_host=172.22.0.1
volumes_from:
- php
volumes:
- ${LOGS_DIR}/apache/:/var/log/apache2/
links:
- mysql
- php