forked from wvega/woocommerce-wompi-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
69 lines (64 loc) · 1.52 KB
/
docker-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
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
version: '3.6'
volumes:
wordpress:
wordpress_db:
services:
db:
container_name: wordpress-db
image: mysql:5.7
env_file: .env
platform: linux/x86_64
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- wordpress_db:/var/lib/mysql
networks:
- wp-network
wordpress:
container_name: wordpress
image: wordpress:latest
env_file: .env
restart: always
depends_on:
- db
ports:
- 8000:80
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_NAME: ${MYSQL_DATABASE}
WORDPRESS_DB_USER: ${MYSQL_USER}
WORDPRESS_DB_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- wordpress:/var/www/html
- ./woocommerce-gateway-wompi:/var/www/html/wp-content/plugins/woocommerce-gateway-wompi
networks:
- wp-network
# wpcli:
# container_name: wordpress-cli
# image: wordpress:cli
# env_file: .env
# depends_on:
# - db
# - wordpress
# user: xfs
# environment:
# WORDPRESS_DB_USER: ${MYSQL_USER}
# WORDPRESS_DB_PASSWORD: ${MYSQL_PASSWORD}
# volumes:
# - wordpress:/var/www/html
# networks:
# - wp-network
# command: /bin/sh -c '
# sleep 30;
# wp plugin install woocommerce && wp plugin activate woocommerce;
# tail -f /dev/null
# '
networks:
wp-network:
driver: bridge