-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
62 lines (58 loc) · 1.77 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
57
58
59
60
61
62
version: "3.6"
services:
wordpress:
image: wordpress:6.3.2-php8.2-apache
container_name: wordpress
volumes:
- ./dev-wp-app:/var/www/html
- ./src/orient-theme:/var/www/html/wp-content/themes/orient-theme
- ./src/orient-home-pages:/var/www/html/wp-content/plugins/orient-home-pages
- ./src/orient-image-handling:/var/www/html/wp-content/plugins/orient-image-handling
- ./src/orient-taxonomies:/var/www/html/wp-content/plugins/orient-taxonomies
# This can't be
# ./src/static/:/var/www/html
# because then the entire wordpress source code would get copied into the
# local /src/static directory.
- ./src/static:/var/www/html/wp-content/static
environment:
- WORDPRESS_DB_NAME=wordpress
- WORDPRESS_TABLE_PREFIX=wp_
- WORDPRESS_DB_HOST=db
- WORDPRESS_DB_USER=root
- WORDPRESS_DB_PASSWORD=password
depends_on:
- db
- phpmyadmin
restart: always
ports:
- 8080:80
# Copy the contents of the static volume to the root folder, then
# run the wordpress image's entrypoint script. This overrides the
# default entrypoint script.
command: >
bash -c "cp -R /var/www/html/wp-content/static/* /var/www/html &&
docker-entrypoint.sh apache2-foreground"
db:
image: mariadb:latest
container_name: db
volumes:
- .:/root
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=root
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=wordpress
restart: always
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin:latest
container_name: phpmyadmin
restart: always
ports:
- 8180:80
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: password
volumes:
db_data: