-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 1.28 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
version: '3.2'
services:
wordpress:
image: wordpress:latest
restart: always
depends_on:
- wordpressdb
networks:
- wordpress-network
ports:
- "8787:80"
volumes:
- ./wp-config/php.conf.uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./wp-app:/var/www/html
# - ./wp-themes/<theme>:/var/www/html/wp-content/themes/<theme>
# - ./wp-plugins/<plugin>:/var/www/html/wp-content/plugins/<plugin>
# - ./wp-config/wp-config.php:/var/www/html/wp-config.php
environment:
WORDPRESS_DB_HOST: wordpressdb
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
wordpressdb:
image: mysql:latest
volumes:
- dbdata:/var/lib/mysql
restart: always
networks:
- wordpress-network
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
ports:
- 3307:3306
volumes:
- ./wp-data:/docker-entrypoint-initdb.d
networks:
wordpress-network:
driver: bridge