-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
63 lines (58 loc) · 1.37 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
55
56
57
58
59
60
61
62
63
version: '3.5'
services:
db_frontend:
image: mysql:5.7
ports:
- 3307:3306
networks:
- coc_network
volumes:
- dbdata:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: 123456
wordpress:
depends_on:
- db_frontend
image: wordpress:latest
restart: always
ports:
- 8000:80
networks:
- coc_network
environment:
WORDPRESS_DB_HOST: db_frontend:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: 123456
WORDPRESS_DEBUG: 1
volumes:
- wpdata:/var/www/html
- ./coc:/var/www/html/wp-content/plugins/coc
- ./wordpress/plugins:/var/www/html/wp-content/plugins
- ./wordpress/themes:/var/www/html/wp-content/themes
- ./wordpress/uploads:/var/www/html/wp-content/uploads
cli:
image: wordpress:cli
networks:
- coc_network
volumes:
- wpdata:/var/www/html
- tmpdata:/tmp
- ./coc:/var/www/html/wp-content/plugins/coc
- ./wp-init.sh:/usr/local/bin/wp-init.sh
depends_on:
- db_frontend
environment:
WORDPRESS_DB_HOST: db_frontend:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: 123456
command: exit 0
volumes:
dbdata:
wpdata:
tmpdata:
networks:
coc_network:
name: coc_network