-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·45 lines (41 loc) · 937 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·45 lines (41 loc) · 937 Bytes
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
version: '3.5'
services:
db:
image: mariadb:10.3
volumes:
- "./db-data:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
build: ./
volumes:
- "./site-data/:/var/www/wp-content/"
# - "./site-data/themes/:/var/www/wp-content/themes/"
# - "./site-data/uploads/:/var/www/wp-content/uploads/"
ports:
- "8002:80"
environment:
DB_HOST: db
DB_PASSWORD: wordpress
DB_NAME: wordpress
DB_USER: wordpress
WORDPRESS_SITE_URL: http://localhost
FS_METHOD: direct
# For debugging only:
#WP_DEBUG: "true"
#WP_DEBUG_DISPLAY: "true"
volumes:
db-data:
site-data:
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.91.0/24