forked from jmlcas/wp-multisite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (64 loc) · 1.49 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
64
65
66
67
68
69
70
71
72
73
version: '3.8'
services:
# Base de datos
db:
container_name: db1
image: mysql:8.0.22
command: '--default-authentication-plugin=mysql_native_password'
volumes:
- db_data:/var/lib/mysql
restart: unless-stopped
ports:
- "3306:3306"
environment:
DB_HOST: localhost
MYSQL_ROOT_PASSWORD: p4ssw0rd
MYSQL_DATABASE: wordpress
MYSQL_USER: userwp
MYSQL_PASSWORD: p4ssw0rd
networks:
- wpsite1
# phpMyAdmin
phpmyadmin:
container_name: pma1
image: phpmyadmin/phpmyadmin
depends_on:
- db
restart: unless-stopped
ports:
- "8080:80"
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: p4ssw0rd
networks:
- wpsite1
# Wordpress
wordpress:
container_name: wp1
image: wordpress:latest
depends_on:
- db
volumes:
- ./wordpress:/var/www/html
- ./config/php.conf.ini:/usr/local/etc/php/conf.d/php.ini
restart: unless-stopped
ports:
- "80:80"
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: userwp
WORDPRESS_DB_PASSWORD: p4ssw0rd
WORDPRESS_TABLE_PREFIX: 'myn_'
WORDPRESS_CONFIG_EXTRA: |
define('WP_ALLOW_MULTISITE', true);
define('WP_POST_REVISIONS', 3);
define('MEDIA_TRASH', true);
define('WP_MEMORY_LIMIT', '256M');
define('WP_MAX_MEMORY_LIMIT', '512M');
networks:
- wpsite1
networks:
wpsite1:
volumes:
db_data:
wordpress: