-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
51 lines (48 loc) · 1.13 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
version: "3.9"
services:
db:
image: mariadb:latest
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
adminer:
depends_on:
- db
image: adminer:latest
ports:
- "127.0.0.1:8042:8080"
restart: always
wordpress:
depends_on:
- db
image: wordpress:latest
volumes:
- wordpress_data:/var/www/html
- type: bind
source: ./sdw_01
target: /var/www/html/wp-content/plugins/sdw_01
- type: bind
source: ./sdw_02
target: /var/www/html/wp-content/plugins/sdw_02
- type: bind
source: ./sdw_04
target: /var/www/html/wp-content/plugins/sdw_04
- type: bind
source: ./sdw_05
target: /var/www/html/wp-content/plugins/sdw_05
ports:
- "80:80"
restart: always
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
volumes:
db_data: {}
wordpress_data: {}