-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (36 loc) · 1011 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
version: '3.3'
services:
wordpress:
image: wordpress
restart: always
ports:
- 8080:80
volumes:
- ./wp-config.php:/var/www/html/wp-content.php
- ./plugins:/var/www/html/wp-content/plugins
- ./themes:/var/www/html/wp-content/themes
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: user1
WORDPRESS_DB_PASSWORD: user1
db:
image: mysql:5.7
restart: always
volumes:
- ./wpTEST:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wordpress
MYSQL_USER: user1
MYSQL_PASSWORD: user1
phpmyadmin:
image: phpmyadmin/phpmyadmin
volumes:
- ./PHPSessions:/sessions
ports:
- 8081:80
environment:
PMA_USER: root
PMA_PASSWORD: root
PMA_HOST: db