-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (60 loc) · 1.64 KB
/
docker-compose.yml
File metadata and controls
65 lines (60 loc) · 1.64 KB
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
version: '3.1'
services:
db:
image: mysql:5.7
# restart: always
ports:
- ${IP}:3306:3306
environment:
MYSQL_DATABASE: "${DB_NAME}"
MYSQL_USER: "${DB_USER_NAME}"
MYSQL_PASSWORD: "${DB_USER_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
volumes:
- ./wp-data/:/docker-entrypoint-initdb.d/
wp:
image: wordpress
depends_on:
- db
# restart: always
ports:
- ${IP}:80:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: "${DB_NAME}"
WORDPRESS_DB_USER: "${DB_USER_NAME}"
WORDPRESS_DB_PASSWORD: "${DB_USER_PASSWORD}"
volumes:
- type: bind
source: ${PWD}/config/php/uploads.ini
target: /usr/local/etc/php/conf.d/uploads.ini
- ./wp-app/:/var/www/html/ # Full wordpress project
#- ./plugin-name/:/var/www/html/wp-content/plugins/plugin-name # Plugin development
#- ./theme-name/:/var/www/html/wp-content/themes/theme-name # Theme development
# wpcli:
# image: wordpress:cli
# depends_on:
# - db
# - wp
# volumes:
# - ./config/php/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
# environment:
# WORDPRESS_DB_HOST: db
# WORDPRESS_DB_NAME: "${DB_NAME}"
# WORDPRESS_DB_USER: root
# WORDPRESS_DB_PASSWORD: "${DB_ROOT_PASSWORD}"
pma:
image: phpmyadmin
depends_on:
- db
ports:
- ${IP}:8081:80
environment:
PMA_USER: root
PMA_PASSWORD: "${DB_ROOT_PASSWORD}"
volumes:
- type: bind
source: ${PWD}/config/php/uploads.ini
target: /usr/local/etc/php/conf.d/uploads.ini
volumes:
db_data: null