-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-dev.yml
96 lines (91 loc) · 2.52 KB
/
docker-compose-dev.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3.8'
services:
wordpress:
image: ${WORDPRESS_IMAGE:-wordpress}:${WORDPRESS_DEV_VERSION:-latest}
container_name: wordpress
volumes:
- type: bind
source: ${WORDPRESS_DATA_DIR:-./wordpress-src}
target: /var/www/html
environment:
WORDPRESS_DB_HOST: ${WORDPRESS_DB_HOST:-mysql}
WORDPRESS_DB_NAME: ${WORDPRESS_DB_NAME:-wordpress}
WORDPRESS_DB_USER: ${WORDPRESS_DB_USER:-wordpress}
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD:-W0rdpr3Ss.}
WORDPRESS_TABLE_PREFIX: ${WORDPRESS_TABLE_PREFIX:-wp_}
ports:
- 80:80
depends_on:
- mysql
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "5"
restart: always
mysql:
image: mariadb:${MARIADB_VERSION:-latest}
container_name: mysql
volumes:
- type: volume
source: mysql
target: /var/lib/mysql
volume:
nocopy: true
- type: bind
source: ${MYSQL_DATA_DIR:-./wordpress-sql}
target: /docker-entrypoint-initdb.d
read_only: true
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-password}
MYSQL_USER: ${WORDPRESS_DB_USER:-wordpress}
MYSQL_PASSWORD: ${WORDPRESS_DB_PASSWORD:-W0rdpr3Ss.}
MYSQL_DATABASE: ${WORDPRESS_DB_NAME:-wordpress}
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "5"
restart: always
wordpress-cli:
image: ${WORDPRESS_IMAGE:-wordpress}:${WORDPRESS_CLI_VERSION:-latest}
volumes:
- type: bind
source: ./config/php.conf.ini
target: /usr/local/etc/php/conf.d/conf.ini
read_only: true
- type: bind
source: ${WORDPRESS_DATA_DIR:-./wordpress-src}
target: /var/www/html
environment:
WORDPRESS_DB_HOST: ${WORDPRESS_DB_HOST:-mysql}
WORDPRESS_DB_NAME: ${WORDPRESS_DB_NAME:-wordpress}
WORDPRESS_DB_USER: ${WORDPRESS_DB_USER:-wordpress}
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD:-W0rdpr3Ss.}
depends_on:
- mysql
- wordpress
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "5"
restart: "no"
pma:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: ${WORDPRESS_DB_HOST:-mysql}
PMA_PORT: 3306
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-password}
ports:
- 8080:80
depends_on:
- mysql
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "5"
restart: always
volumes:
mysql: