-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
38 lines (36 loc) · 988 Bytes
/
docker-compose.yaml
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
services:
mysql:
image: mariadb:latest
command: '--default-authentication-plugin=mysql_native_password'
volumes:
- ./mysql:/var/lib/mysql
restart: unless-stopped
env_file:
- .env
environment:
- MYSQL_ROOT_PASSWORD=${WORDPRESS_ROOT_PASSWORD}
- MYSQL_DATABASE=${WORDPRESS_DB_NAME}
- MYSQL_USER=${WORDPRESS_DB_USER}
- MYSQL_PASSWORD=${WORDPRESS_DB_PASSWORD}
wordpress:
image: wordpress:latest
env_file:
- .env
ports:
- 2023:80
restart: unless-stopped
volumes:
- ./wordpress:/var/www/html
environment:
- WORDPRESS_DB_HOST=${WORDPRESS_DB_HOST}
- WORDPRESS_DB_USER=${WORDPRESS_DB_USER}
- WORDPRESS_DB_PASSWORD=${WORDPRESS_DB_PASSWORD}
- WORDPRESS_DB_NAME=${WORDPRESS_DB_NAME}
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: unless-stopped
ports:
- 2024:80
environment:
- PMA_HOST=${WORDPRESS_DB_HOST}
- PMA_ARBITRARY=0