forked from luiztucillo/docker-woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·73 lines (69 loc) · 1.99 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
64
65
66
67
68
69
70
71
72
73
version: '3.8'
services:
nginx:
build:
context: images/nginx
args:
username: ${USERNAME}
domain: ${DOMAIN}
cert_path: ${CERT_PATH}
cert_key_path: ${CERT_KEY_PATH}
container_name: wordpress_nginx
ports:
- 80:80
- 443:443
links:
- php
volumes:
- ./src:/var/www/html
- ./plugins:/var/www/html/wp-content/plugins
- ./images/nginx/conf/conf.d/default.conf:/etc/nginx/conf.d/default.conf
- ./images/nginx/conf/applications/wordpress.conf:/etc/nginx/application.conf
- ./images/nginx/conf/includes:/etc/nginx/includes
- ${CERT_PATH}:${CERT_PATH}
- ${CERT_KEY_PATH}:${CERT_KEY_PATH}
networks:
mynetwork:
aliases:
- ${DOMAIN}
php:
build:
context: images/php
dockerfile: Dockerfile-7.4
args:
username: ${USERNAME}
host_os: ${HOST_OS}
container_name: wordpress_php
# links:
# - mysql
volumes:
- ./src:/var/www/html
- /private:/private #/tmp dir for mac
networks:
- mynetwork
environment:
- WP_CORE_DIR=/var/www/html
- WP_TESTS_DIR=/var/www/html/tests
- PHP_IDE_CONFIG="serverName=Docker"
# mysql:
# image: mysql:5.7
# container_name: wordpress_mysql
# ports:
# - 3306:3306
# environment:
# MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
# volumes:
# - ./data:/var/lib/mysql:delegated
# networks:
# - mynetwork
mailhog:
image: mailhog/mailhog
container_name: wordpress_mailhog
ports:
- 1025:1025
- 8025:8025
networks:
- mynetwork
networks:
mynetwork:
driver: bridge