-
-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathdocker-compose.yml
56 lines (55 loc) · 1.22 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
version: '3'
services:
web:
build: .
volumes:
- ./apidoc:/code/apidoc
- ./commands:/code/commands
- ./components:/code/components
- ./controllers:/code/controllers
- ./data:/code/data
- ./jobs:/code/jobs
- ./mail:/code/mail
- ./migrations:/code/migrations
- ./models:/code/models
- ./notifications:/code/notifications
- ./tests:/code/tests
- ./views:/code/views
- ./widgets:/code/widgets
- assets_volume:/code/assets
- vendor_volume:/code/vendor
- web_volume:/code/web
expose:
- 9000
command: >
bash -c "php-fpm"
mariadb:
image: mariadb:10.5.12
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: yiiframeworkcom
MYSQL_USER: yiiframeworkcom
MYSQL_PASSWORD: yiiframeworkcom
nginx:
build:
context: docker/nginx
volumes:
- assets_volume:/code/assets
- vendor_volume:/code/vendor
- web_volume:/code/web
ports:
- 81:81
depends_on:
- web
redis:
image: redis:6.0.16
elasticsearch:
image: elasticsearch:5.6.16
ports:
- "9200:9200"
volumes:
assets_volume:
vendor_volume:
web_volume: