-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.yaml
29 lines (29 loc) · 897 Bytes
/
compose.yaml
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
services:
web:
build:
context: ./
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DEBUG: '1'
WORDPRESS_CONFIG_EXTRA: "define( 'WP_DEBUG_LOG', '/var/log/wordpress.debug.log' ); define( 'WP_DEBUG_DISPLAY', false ); define( 'SCRIPT_DEBUG', true );"
volumes:
- .:/var/www/html/wp-content/plugins/smol-links
db:
image: mariadb:10.5.8
ports:
- 3306:3306
restart: always
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- db:/var/lib/mysql
volumes:
db: {}