-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (52 loc) · 1.1 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
52
53
54
55
56
version: "3.9"
services:
nginx:
image: nginx:mainline-alpine
depends_on:
- wordpress
ports:
- 8080:80
volumes:
- ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf
- html_data:/var/www/html
wordpress:
build: ./docker/wordpress
depends_on:
- mysql
env_file: .env
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: $MYSQL_USER
WORDPRESS_DB_PASSWORD: $MYSQL_PASSWORD
WORDPRESS_DB_NAME: $MYSQL_DATABASE
expose:
- 9000
volumes:
- html_data:/var/www/html
- ./themes:/var/www/html/wp-content/themes
- ./plugins:/var/www/html/wp-content/plugins
mysql:
image: mysql:8.0
env_file: .env
expose:
- 3306
ports:
- 3306:3306
restart: always
volumes:
- db_data:/var/lib/mysql
# phpmyadmin:
# depends_on:
# - db
# image: phpmyadmin
# env_file: .env
# environment:
# PMA_HOST: db
# PMA_USER: root
# PMA_PASSWORD: $MYSQL_ROOT_PASSWORD
# ports:
# - 8090:80
# restart: always
volumes:
html_data:
db_data: