forked from flyimg/flyimg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
145 lines (134 loc) · 3.6 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
version: '2'
services:
http:
image: nginx:alpine
volumes:
- ./.docker/nginx@1.15/config/options.conf:/etc/nginx/conf.d/000-options.conf
- ./.docker/nginx@1.15/config/reverse-proxy.conf:/etc/nginx/conf.d/default.conf
- ./:/var/www/html
- cache:/var/www/html/var/cache
restart: on-failure
ports:
- ${HTTP_PORT}:80
http-worker-prod:
image: nginx:alpine
volumes:
- ./.docker/nginx@1.15/config/options.conf:/etc/nginx/conf.d/000-options.conf
- ./.docker/nginx@1.15/config/vhost-prod.conf:/etc/nginx/conf.d/default.conf
- ./:/var/www/html
- cache:/var/www/html/var/cache:ro
restart: on-failure
ports:
- ${HTTP_PROD_PORT}:80
depends_on:
- fpm
http-worker-dev:
image: nginx:alpine
volumes:
- ./.docker/nginx@1.15/config/options.conf:/etc/nginx/conf.d/000-options.conf
- ./.docker/nginx@1.15/config/vhost-dev.conf:/etc/nginx/conf.d/default.conf
- ./:/var/www/html
- cache:/var/www/html/var/cache:ro
restart: on-failure
ports:
- ${HTTP_DEV_PORT}:80
depends_on:
- fpm
http-worker-xdebug:
image: nginx:alpine
volumes:
- ./.docker/nginx@1.15/config/options.conf:/etc/nginx/conf.d/000-options.conf
- ./.docker/nginx@1.15/config/vhost-xdebug.conf:/etc/nginx/conf.d/default.conf
- ./:/var/www/html
- cache:/var/www/html/var/cache:ro
restart: on-failure
ports:
- ${HTTP_XDEBUG_PORT}:80
depends_on:
- fpm-xdebug
fpm:
build:
context: ./.docker/php@7.2/
args:
SOURCE_IMAGE: kiboko/php:7.2-fpm-blackfire
user: docker:docker
volumes:
- ./:/var/www/html
- cache:/var/www/html/var/cache
- temp:/var/www/html/var/tmp
environment:
- "I_AM_DEVELOPER_DISABLE_INDEX_IP_CHECK="
restart: on-failure
fpm-xdebug:
build:
context: ./.docker/php@7.2/
args:
SOURCE_IMAGE: kiboko/php:7.2-fpm-xdebug
user: docker:docker
volumes:
- ./:/var/www/html
- cache:/var/www/html/var/cache
- temp:/var/www/html/var/tmp
environment:
- "I_AM_DEVELOPER_DISABLE_INDEX_IP_CHECK="
restart: on-failure
blackfire:
image: blackfire/blackfire
environment:
- BLACKFIRE_SERVER_ID
- BLACKFIRE_SERVER_TOKEN
dbgp:
build:
context: './.docker/dbgp/'
ports:
- ${DBGP_PORT}:9001
sh:
build:
context: ./.docker/php@7.2/
args:
SOURCE_IMAGE: kiboko/php:7.2-cli-blackfire
user: docker:docker
volumes:
- ./:/var/www/html
- cache:/var/www/html/var/cache
- temp:/var/www/html/var/tmp
- $HOME/.ssh:/opt/docker/.ssh
- $HOME/.composer:/opt/docker/.composer/
environment:
- COMPOSER_AUTH
- COMPOSER_PROCESS_TIMEOUT
- BLACKFIRE_CLIENT_ID
- BLACKFIRE_CLIENT_TOKEN
- HOME=/var/www/html
command: [ "sleep", "31536000" ]
restart: "always"
sh-xdebug:
build:
context: ./.docker/php@7.2/
args:
SOURCE_IMAGE: kiboko/php:7.2-cli-xdebug
user: docker:docker
volumes:
- ./:/var/www/html
- cache:/var/www/html/var/cache
- temp:/var/www/html/var/tmp
- $HOME/.ssh:/opt/docker/.ssh
- $HOME/.composer:/opt/docker/.composer/
environment:
- COMPOSER_AUTH
- COMPOSER_PROCESS_TIMEOUT
command: [ "sleep", "31536000" ]
restart: "always"
volumes:
cache:
driver: local
driver_opts:
type: tmpfs
device: tmpfs
o: "size=2048m,uid=1000,gid=1000"
temp:
driver: local
driver_opts:
type: tmpfs
device: tmpfs
o: "size=2048m,uid=1000,gid=1000"