-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
79 lines (77 loc) · 2.37 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
79 lines (77 loc) · 2.37 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
services:
wordpress:
container_name: wordpress
extra_hosts:
- "portal.localhost:host-gateway"
image: wordpress:6.8-php8.2-apache
restart: always
ports:
- 8888:80
environment:
WORDPRESS_DB_HOST: mariadb
WORDPRESS_DB_USER: twocommerce
WORDPRESS_DB_PASSWORD: twocommerce
WORDPRESS_DB_NAME: twocommerce
WORDPRESS_HOME: "http://localhost:8888"
WORDPRESS_SITEURL: "http://localhost:8888"
WORDPRESS_DEBUG: "true"
volumes:
- ./volumes/wordpress:/var/www/html
- .:/var/www/html/wp-content/plugins/tillit-payment-gateway
- ./docker/mu-plugins:/var/www/html/wp-content/mu-plugins
- ./volumes/log/:/var/log/apache2/
depends_on:
mariadb:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost/ || exit 1"]
interval: 5s
timeout: 5s
retries: 10
wpcli:
container_name: wpcli
image: wordpress:cli-2.11.0-php8.2
user: "33:33"
entrypoint: /opt/tillit-payment-gateway/docker/wpcli.sh
restart: always
environment:
WORDPRESS_DB_HOST: mariadb
WORDPRESS_DB_USER: twocommerce
WORDPRESS_DB_PASSWORD: twocommerce
WORDPRESS_DB_NAME: twocommerce
WORDPRESS_URL: "http://localhost:8888"
WORDPRESS_TITLE: "Twocommerce Wordpress"
WORDPRESS_ADMIN_USER: admin
WORDPRESS_ADMIN_PASSWORD: twoinb2b
WORDPRESS_ADMIN_EMAIL: admin@two.inc
WOOCOM_PLUGIN_CONFIG_JSON: docker/config/staging-tillittestuk.json
WOOCOM_CURRENCY: GBP
WOOCOM_DEFAULT_COUNTRY: GB
WOOCOM_VERSION: 9.9.5
# WOOCOM_VERSION: 8.9.5
# WOOCOM_VERSION: 7.9.1
volumes:
- ./volumes/wordpress:/var/www/html
- .:/opt/tillit-payment-gateway
- .:/var/www/html/wp-content/plugins/tillit-payment-gateway
depends_on:
mariadb:
condition: service_healthy
wordpress:
condition: service_healthy
mariadb:
container_name: mariadb
image: mariadb:10.2
restart: always
environment:
MYSQL_DATABASE: twocommerce
MYSQL_USER: twocommerce
MYSQL_PASSWORD: twocommerce
MYSQL_RANDOM_ROOT_PASSWORD: "1"
volumes:
- ./volumes/mariadb:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "twocommerce", "-ptwocommerce"]
interval: 5s
timeout: 5s
retries: 10