-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1.22 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
version: '3'
services:
db:
ports:
- "8001:3306"
image: mysql:8.0
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
web:
depends_on:
- db
build:
context: .
dockerfile: Dockerfile
args:
woocommerce_version: 9.4.1
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DEV_ENV: 1
WORDPRESS_DEBUG: 1
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_CONFIG_EXTRA: |
define( 'WPLANG', '${WPLANG}');
define( 'UPLOADS', '/var/www/html/wp-content/uploads' );
define( 'WP_DEBUG_LOG', '/tmp/wp-errors.log');
define( 'WP_SITEURL', 'http://' . $$_SERVER['HTTP_HOST']);
define( 'WP_HOME', 'http://' . $$_SERVER['HTTP_HOST']);
volumes:
- .:/var/www/html/wp-content/plugins/komoju-woocommerce
volumes:
db_data:
# # Uncomment to use with Kaiser
# networks:
# default:
# name: kaiser_net
# external: true