-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.minio.yaml
153 lines (144 loc) · 3.67 KB
/
docker-compose.minio.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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
version: '3.1'
services:
nginx:
build: .
image: arvato/wordpress
restart: always
command: /scripts/run-nginx.sh
user: "33:33"
ports:
- 8080:8080
volumes:
- ${PWD}/conf/nginx.conf:/etc/nginx/nginx.conf
links:
- php-fpm
php-fpm:
build: .
image: arvato/wordpress
restart: always
command: /scripts/run-php.sh
user: "33:33"
ports:
- 9000:9000
volumes:
- ${PWD}/conf/fpm-pool.conf:/etc/php/7.4/fpm/pool.d/www.conf
- ${PWD}/conf/fpm.conf:/etc/php/7.4/fpm/php-fpm.conf
# - ${PWD}/src/wp-config.php:/app/wp-config.php
# - ${PWD}/src/amazon-s3-and-cloudfront-tweaks.php:/app/wp-content/plugins/amazon-s3-and-cloudfront-tweaks.php
environment:
MYSQL_HOST: mysql
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_DATABASE: exampledb
USE_MINIO: "true"
MINIO_HOST: minio
MINIO_PORT: 54321
MINIO_URL_DOMAIN: localhost:54321
AWS_ACCESS_KEY: abcdef
AWS_SECRET_KEY: 12345678
WP_OFFLOAD_DOMAIN: cloudfront
WP_OFFLOAD_CLOUDFRONT: localhost:54321
WP_OFFLOAD_BUCKET: wordpress
links:
- mysql
- minio
mysql:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
minio:
image: minio/minio
command:
- server
- --address
- :54321
- /data
restart: always
ports:
- 54321:54321
environment:
MINIO_ACCESS_KEY: abcdef
MINIO_SECRET_KEY: 12345678
minio-setup:
image: minio/mc
restart: on-failure
entrypoint: >
/bin/sh -c "
echo Waiting for minio service to start...;
while ! nc -z minio 54321;
do
sleep 1;
done;
echo Connected!;
mc config host add myminio http://minio:54321 abcdef 12345678;
/usr/bin/mc mb myminio/wordpress;
/usr/bin/mc policy set download myminio/wordpress;
exit 0;
"
restart: "no"
environment:
MINIO_ACCESS_KEY: abcdef
MINIO_SECRET_KEY: 12345678
MINIO_HOST: minio
MINIO_PORT: 54321
SLEEP: 20
links:
- minio
preinstall-hook:
build: .
image: arvato/wordpress
restart: "no"
command: /scripts/preinstall-hook.sh
user: "33:33"
environment:
MYSQL_HOST: mysql
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_DATABASE: exampledb
WORDPRESS_BLOGNAME: toller Blog
WORDPRESS_BLOGURL: example.loc
WORDPRESS_USERNAME: admin
WORDPRESS_PASSWORD: daAfG3423sf
WORDPRESS_EMAIL: [email protected]
WP_PLUGINS: "amazon-s3-and-cloudfront amazon-s3-and-cloudfront-tweaks"
SLEEP: 10
links:
- mysql
postinstall-hook:
build: .
image: arvato/wordpress
restart: "no"
command: /scripts/preinstall-hook.sh
user: "33:33"
environment:
MYSQL_HOST: mysql
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_DATABASE: exampledb
WORDPRESS_BLOGNAME: toller Blog
WORDPRESS_BLOGURL: example.loc
WORDPRESS_USERNAME: admin
WORDPRESS_PASSWORD: daAfG3423sf
WORDPRESS_EMAIL: [email protected]
WP_PLUGINS: "amazon-s3-and-cloudfront amazon-s3-and-cloudfront-tweaks"
SLEEP: 20
links:
- mysql
run-cron:
build: .
image: arvato/wordpress
restart: "no"
command: /scripts/run-cron.sh
user: "33:33"
environment:
MYSQL_HOST: mysql
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_DATABASE: exampledb
SLEEP: 30
links:
- mysql