-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
178 lines (166 loc) · 4.49 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
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
version: "3.7"
services:
php:
build:
args:
uid: 1000
context: ./
dockerfile: docker/php/Dockerfile
restart: unless-stopped
working_dir: /var/www/
environment:
PHP_IDE_CONFIG: serverName=Docker
TERM: xterm-256color
volumes:
- ./:/var/www
- ./docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
- ./docker/php/bin/:/home/app/bin/
- ./docker/php/.bashrc:/home/app/.bashrc
- composer-cache:/home/app/.composer/
- php-bash-hist:/home/app/bash/
- php-zsh-hist:/home/app/zsh/
extra_hosts:
- "host.docker.internal:host-gateway"
- "test-minio.vadim.visual:host-gateway"
depends_on:
- db
- redis
- mailhog
- minio
- imgproxy
db:
image: mysql:8.0
restart: unless-stopped
environment:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: test
MYSQL_PASSWORD: test
MYSQL_USER: test
volumes:
- mysql-data:/var/lib/mysql
nginx:
image: nginx:1.21
restart: unless-stopped
ports:
- "59001:80"
volumes:
- ./:/var/www
- ./docker/nginx:/etc/nginx/conf.d
depends_on:
- php
adminer:
image: adminer
ports:
- '59002:8080'
restart: unless-stopped
depends_on:
- db
node:
build:
args:
uid: 1000
context: ./
dockerfile: docker/node/Dockerfile
environment:
TERM: xterm-256color
volumes:
- ./:/var/www
- ./docker/node/.bashrc:/home/node/.bashrc
- node-cache:/home/node/.cache/
- node-bash-hist:/home/node/bash/
- node-zsh-hist:/home/node/zsh/
redis:
image: "redis:6.2"
command: "redis-server --appendonly yes"
restart: unless-stopped
volumes:
- redis-data:/data
redis-commander:
image: rediscommander/redis-commander:latest
restart: always
links:
- redis
environment:
- REDIS_HOSTS=redis:redis:6379
ports:
- "59003:8081"
depends_on:
- redis
mailhog:
image: mailhog/mailhog:v1.0.1
ports:
- 59004:8025 # web ui
minio:
image: minio/minio:RELEASE.2021-10-02T16-31-05Z
user: 1000:1000
ports:
- "59005:9000" # api
- "59006:9001" # ui
volumes:
- ./var/minio:/data
environment:
MINIO_ROOT_USER: minio_access_key
MINIO_ROOT_PASSWORD: minio_secret_key
command: server --console-address ":9001" /data
create-buckets:
image: minio/mc:RELEASE.2021-09-23T05-44-03Z
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set test-minio http://minio:9000 minio_access_key minio_secret_key;
/usr/bin/mc mb test-minio/public --region storage1;
/usr/bin/mc policy set download test-minio/public;
/usr/bin/mc mb test-minio/public-test --region storage1;
/usr/bin/mc policy set download test-minio/public-test;
exit 0;
"
mercure:
image: dunglas/mercure
restart: unless-stopped
environment:
# Uncomment the following line to disable HTTPS
SERVER_NAME: ':80'
MERCURE_PUBLISHER_JWT_KEY: '!ChangeMe!'
MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeMe!'
# Uncomment the following line to enable the development mode(disable cors)
command: /usr/bin/caddy run -config /etc/caddy/Caddyfile.dev
ports:
- "59007:80"
- "59008:443"
volumes:
- mercure_data:/data
- mercure_config:/config
imgproxy:
image: darthsim/imgproxy:v2.17
restart: unless-stopped
ports:
- "59009:8080"
environment:
IMGPROXY_CONCURRENCY: 1
IMGPROXY_USE_ETAG: 1
IMGPROXY_KEY: '9f15b865f3aea54355b188c88c354d72b5c26c846a95de3825c6bd67556beefbe578a4d6491d4bd43af106ead4b59e659a57ae8e0cd3cf43cbab48ac7e695a2a'
IMGPROXY_SALT: 'd231ac4e362fbcfe4f9b636dbc8206ad207ac337cb9d1c85e2802ee50aba71263d5c0594d9af0da6f9cde79c77a5bef09fb7c7e00f496e5ce87f19ed40061237'
IMGPROXY_JPEG_PROGRESSIVE: 1
IMGPROXY_PNG_INTERLACED: 1
IMGPROXY_PNG_QUANTIZE: 1
IMGPROXY_ENABLE_WEBP_DETECTION: 1
IMGPROXY_ENFORCE_WEBP: 1
IMGPROXY_ENABLE_AVIF_DETECTION: 1
IMGPROXY_ENFORCE_AVIF: 1
extra_hosts:
- "test-minio.vadim.visual:host-gateway"
depends_on:
- minio
volumes:
composer-cache: ~
php-zsh-hist: ~
php-bash-hist: ~
node-cache: ~
node-zsh-hist: ~
node-bash-hist: ~
mysql-data: ~
redis-data: ~
mercure_data: ~
mercure_config: ~