-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
44 lines (41 loc) · 1.03 KB
/
docker-compose.yaml
File metadata and controls
44 lines (41 loc) · 1.03 KB
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
version: '3.7'
services:
web:
build:
context: './config/docker/web'
dockerfile: './Dockerfile'
depends_on:
- database
ports:
- '8080:80'
volumes:
- ./server/html:/var/www/html
- ./server/public:/var/www/html/public
- ./server/wp-content/themes:/var/www/html/public/wp-content/themes
- ./server/wp-content/uploads:/var/www/html/public/wp-content/uploads
- ./server/wp-content/plugins:/var/www/html/public/wp-content/plugins
environment:
WORDPRESS_DB_HOST: database
WORDPRESS_DB_PASSWORD: password
WORDPRESS_TABLE_PREFIX: wpdin_
links:
- database:mysql
database:
image: mariadb
ports:
- '8082:3306'
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- ./server/database:/var/lib/mysql
phpmyadmin:
depends_on:
- database
image: phpmyadmin/phpmyadmin
ports:
- '8081:80'
environment:
PMA_HOST: database
MYSQL_ROOT_PASSWORD: password
links:
- database:database