-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 935 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 935 Bytes
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
version: '3'
networks:
backend:
driver: bridge
volumes:
mysql:
driver: local
services:
wordpress:
build:
context: ./wordpress
volumes:
- ./wordpress:/var/www/html:cached
- ./wordpress/php.ini:/usr/local/etc/php/conf.d/uploads.ini
ports:
- "80:80"
user: 1000:1000
networks:
- backend
environment:
WORDPRESS_DB_HOST: mysql:3306
WORDPRESS_DB_USER: default
WORDPRESS_DB_PASSWORD: secret
WORDPRESS_DB_NAME: default
WORDPRESS_TABLE_PREFIX: wp_
WORDPRESS_DEBUG: "true"
WORDPRESS_CONFIG_EXTRA: |
/* CUSTOM CONFIGS */
define('ALLOW_UNFILTERED_UPLOADS', true);
define('WP_DEBUG_LOG', true);
mysql:
build:
context: ./mysql
volumes:
- mysql:/var/lib/mysql
- ./mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
networks:
- backend