forked from jonathanlaf/wp-docker-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (49 loc) · 1.21 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
version: '3.3'
services:
mysql:
image: mysql:5.7
volumes:
- ${MYSQL_VOLUME}:/var/lib/mysql
restart: always
environment:
MYSQL_DATABASE: ${DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASS}
MYSQL_RANDOM_ROOT_PASSWORD: '1'
TZ: ${TIMEZONE}
wordpress:
depends_on:
- mysql
build:
context: .
dockerfile: ./Dockerfile
args:
WORDPRESS_VERSION: ${WORDPRESS_VERSION}
image: local-wordpress-xdebug
container_name: local-wordpress-xdebug
volumes:
- ${WORDPRESS_VOLUME}:/var/www/html
restart: always
ports:
- ${WORDPRESS_PORT}:80
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: ${WORDPRESS_USER}
WORDPRESS_DB_PASSWORD: ${WORDPRESS_PASS}
WORDPRESS_DB_NAME: ${DATABASE}
TZ: ${TIMEZONE}
XDEBUG_CONFIG: remote_host=host.docker.internal remote_port=9000 remote_enable=1
adminer:
depends_on:
- mysql
image: adminer:latest
restart: always
ports:
- ${ADMINER_PORT}:8080
environment:
ADMINER_DEFAULT_SERVER: mysql
mailhog:
image: mailhog/mailhog
ports:
- ${MAILHOG_PORT}:1025
- ${MAILHOG_WEB_PORT}:8025