forked from btcpayserver/btcpayserver-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
opt-add-woocommerce.yml
40 lines (37 loc) · 1019 Bytes
/
opt-add-woocommerce.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
version: '3'
services:
woocommerce:
image: btcpayserver/woocommerce:3.1.0
environment:
WOOCOMMERCE_HOST: ${WOOCOMMERCE_HOST}
WORDPRESS_DB_HOST: mariadb
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
LETSENCRYPT_HOST: ${WOOCOMMERCE_HOST}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL:-<no value>}
VIRTUAL_HOST: ${WOOCOMMERCE_HOST}
VIRTUAL_HOST_NAME: "woocommerce"
expose:
- "80"
links:
- mariadb
volumes:
- "woocommerce_html:/var/www/html"
mariadb:
image: mariadb:10.11
container_name : generated_mariadb_1
environment:
MYSQL_ROOT_PASSWORD: wordpressdb
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
expose:
- "3306"
volumes:
- "mariadb_datadir:/var/lib/mysql"
btcpayserver:
environment:
BTCPAY_EXTERNALSERVICES: "WooCommerce:${BTCPAY_PROTOCOL:-https}://${WOOCOMMERCE_HOST};"
volumes:
woocommerce_html:
mariadb_datadir: