-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (39 loc) · 1.09 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
# /wordpress-docker/docker-compose.yml
---
version: "3.3"
services:
db:
container_name: local-wordpress-db
image: mysql:5.7
volumes:
- ./docker/data/mysql:/var/lib/mysql
ports:
- 18766:3306
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress_db
MYSQL_USER: wordpress_user
MYSQL_PASSWORD: wordpress_password
compose:
container_name: local-compose
image: composer
volumes:
- ./:/var/www/html/wp-content/plugins/mudlet-release
command: composer install --working-dir=/var/www/html/wp-content/plugins/mudlet-release
wordpress:
container_name: local-wordpress
depends_on:
- db
- compose
image: 'wordpress:latest'
ports:
- '80:80'
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress_user
WORDPRESS_DB_PASSWORD: wordpress_password
WORDPRESS_DB_NAME: wordpress_db
volumes:
- ./docker/wordpress:/var/www/html
- ./docker/plugins:/var/www/html/wp-content/plugins
- ./:/var/www/html/wp-content/plugins/mudlet-release