forked from Automattic/woocommerce-services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (61 loc) · 1.83 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
63
version: '3'
volumes:
## Kludge for not having the ./docker directory bound recursively
dockerdirectory:
services:
wordpress:
build:
context: ./docker/wordpress_xdebug
# Options: Dockerfile-php73, Dockerfile-php81
dockerfile: Dockerfile-php73
container_name: woocommerce_services_wordpress
image: woocommerce_services_wordpress
depends_on:
- db
links:
- db:mysql
ports:
- "8050:80"
env_file:
- default.env
volumes:
- ./docker/wordpress:/var/www/html/
- ./docker/logs/apache2/:/var/log/apache2
- .:/var/www/html/wp-content/plugins/woocommerce-services
- ./docker/php.ini:/usr/local/etc/php/conf.d/wc-services-php.ini
- dockerdirectory:/var/www/html/wp-content/plugins/woocommerce-services/docker
- ./docker/bin:/var/scripts
db:
container_name: woocommerce_services_sql
image: mariadb:10.5.8
env_file:
- default.env
adminer:
image: adminer
ports:
- "8051:8080"
node:
image: "node:10.16.0"
user: "node"
working_dir: /home/node/app
deploy:
resources:
limits:
memory: 4G
volumes:
- './:/home/node/app'
ports:
# used by webpack dev server
- "8085:8085"
# used by the webpack bundle analyzer server
- "8888:8888"
command: >
sh -c '
if test -d /home/node/app/node_modules/node-sass/vendor/linux-x64-48;
then
echo node-sass exists;
else
npm rebuild node-sass;
fi &&
npm run start -- --host 0.0.0.0
'