forked from likecoin/likecoin-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (41 loc) · 959 Bytes
/
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
version: '3'
services:
wp:
depends_on:
- mysql
image: wordpress:php7.2-fpm-alpine
environment:
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: password
WORDPRESS_DEBUG: 1
WORDPRESS_CONFIG_EXTRA:
define('FORCE_SSL_ADMIN', false);
volumes:
- wp_data:/var/www/html
- ./likecoin:/var/www/html/wp-content/plugins/likecoin
mysql:
image: mariadb:10.7
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
environment:
MYSQL_DATABASE: wordpress
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: wordpress
nginx:
depends_on:
- wp
image: nginx:alpine
ports:
- 8080:80
volumes:
- ./site.conf:/etc/nginx/conf.d/default.conf:ro
- wp_data:/var/www/html
- ./likecoin:/var/www/html/wp-content/plugins/likecoin
volumes:
mysql_data:
driver: local
wp_data:
driver: local