-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
37 lines (37 loc) · 1012 Bytes
/
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
services:
db:
# We use a mariadb image which supports both amd64 & arm64 architecture
image: mariadb:10.6.4-focal
# If you really want to use MySQL, uncomment the following line
#image: mysql:8.0.27
command: '--default-authentication-plugin=mysql_native_password'
volumes:
- bm_data:/var/lib/mysql
restart: always
ports:
- 3300:3306
environment:
MYSQL_ROOT_PASSWORD: 123qwe
MYSQL_DATABASE: task
MYSQL_USER: task
MYSQL_PASSWORD: 123qwe
expose:
- 3306
- 33060
wordpress:
image: wordpress:latest
ports:
- 9000:80
restart: always
volumes:
- .:/var/www/html/wp-content/plugins/buddytask
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: task
WORDPRESS_DB_PASSWORD: 123qwe
WORDPRESS_DB_NAME: task
WORDPRESS_CONFIG_EXTRA: |
define( 'WP_HOME', 'http://192.168.23.64:9000' );
define( 'WP_SITEURL', 'http://192.168.23.64:9000' );
volumes:
bm_data: