forked from mailpoet/mailpoet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
106 lines (99 loc) · 2.78 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: '3.8'
services:
dashboard:
container_name: mp-dashboard
image: nginx:1.21-alpine
ports:
- 8888:80
volumes:
- ./dev/dashboard:/usr/share/nginx/html:ro
db:
container_name: mp-db
image: mysql:5.7
volumes:
- my-datavolume:/var/lib/mysql
- ./dev/database/create_test_db.sh:/docker-entrypoint-initdb.d/10-create_test_db.sh
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_TEST_DATABASE: test_wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
container_name: mp-wp
build:
context: .
dockerfile: dev/php81/Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
ports:
- '8002:80'
- '8083:8083' # Storybook port number, see package.json
depends_on:
- db
- smtp
user: ${UID:-1000}:${GID:-1000}
environment:
WORDPRESS_DEBUG: 1
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
PHP_IDE_CONFIG: 'serverName=Mailpoet'
COMPOSER_HOME: '/tmp/.composer'
NPM_CONFIG_CACHE: '/tmp/.npm'
MAILPOET_DEV_SITE: 1
volumes:
- './wordpress:/var/www/html'
- './eslint-config:/var/www/html/wp-content/plugins/eslint-config'
- './tsconfig.base.json:/var/www/html/wp-content/plugins/tsconfig.base.json:ro'
- './mailpoet:/var/www/html/wp-content/plugins/mailpoet'
- './mailpoet-premium:/var/www/html/wp-content/plugins/mailpoet-premium'
- './templates:/var/www/templates'
test_wordpress:
container_name: mp-test-wp
build:
context: .
dockerfile: dev/php81/Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
ports:
- '8003:80'
depends_on:
- db
- smtp
user: ${UID:-1000}:${GID:-1000}
environment:
WORDPRESS_DB_NAME: test_wordpress
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
PHP_IDE_CONFIG: 'serverName=Mailpoet'
volumes:
- './eslint-config:/var/www/html/wp-content/plugins/eslint-config'
- './mailpoet:/var/www/html/wp-content/plugins/mailpoet'
- './mailpoet-premium:/var/www/html/wp-content/plugins/mailpoet-premium'
smtp:
container_name: mp-mailhog
image: mailhog/mailhog:v1.0.0
user: ${UID:-1000}:${GID:-1000}
environment:
MH_STORAGE: maildir
MH_MAILDIR_PATH: /output
volumes:
- './dev/data/mailhog:/output'
ports:
- '8082:8025'
adminer:
container_name: mp-adminer
image: adminer:latest
depends_on:
- db
ports:
- '8081:8080'
volumes:
- './dev/php.ini:/usr/local/etc/php/conf.d/custom.ini'
volumes:
my-datavolume: