-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
75 lines (73 loc) · 1.74 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
74
75
version: "3.9"
volumes:
wp_mysql_data:
driver: local
wp_mysql_data_testing:
driver: local
services:
wordpress:
container_name: wordpress
build:
context: ./docker
dockerfile: wordpress.Dockerfile
args:
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
PHP_VERSION: ${PHP_VERSION}
WP_VERSION: ${WP_VERSION}
ports:
- "8080:80"
volumes:
- .:/var/www/html/wp-content/plugins/wp-mail-catcher
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: ${DB_USERNAME}
WORDPRESS_DB_PASSWORD: ${DB_PASSWORD}
WORDPRESS_DB_NAME: ${DB_DATABASE}
mysql:
container_name: mysql
image: mysql:5.7
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
volumes:
- wp_mysql_data:/var/lib/mysql
mysql_testing:
container_name: mysql_testing
image: mysql:5.7
ports:
- "3307:3306"
environment:
MYSQL_DATABASE: ${DB_DATABASE}_testing
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
volumes:
- wp_mysql_data_testing:/var/lib/mysql
composer:
container_name: composer
build:
context: ./docker
dockerfile: composer.Dockerfile
args:
PHP_VERSION: ${PHP_VERSION}
working_dir: /usr/src
volumes:
- .:/usr/src
profiles:
- donotstart
grunt:
container_name: grunt
build:
context: ./docker
dockerfile: grunt.Dockerfile
working_dir: /srv/build/grunt
volumes:
- .:/srv
profiles:
- donotstart