-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (49 loc) · 1.15 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
version: '2.2'
services:
blackfire:
image: blackfire/blackfire
environment:
- BLACKFIRE_SERVER_ID
- BLACKFIRE_SERVER_TOKEN
sh:
build:
context: ./.docker/php@7.2/cli
user: docker:docker
volumes:
- $HOME/.ssh:/opt/docker/.ssh:cached
- ./:/var/www/html
- composer:/opt/docker/.composer/:cached
environment:
- COMPOSER_AUTH
- COMPOSER_PROCESS_TIMEOUT
command: [ "sleep", "31536000" ]
restart: "always"
sh-xdebug:
build:
context: ./.docker/php@7.2/cli-xdebug
user: docker:docker
volumes:
- $HOME/.ssh:/opt/docker/.ssh:cached
- ./:/var/www/html
- composer:/opt/docker/.composer/:cached
environment:
- COMPOSER_AUTH
- COMPOSER_PROCESS_TIMEOUT
command: [ "sleep", "31536000" ]
restart: "always"
mysql:
image: 'mysql:5.7'
environment:
MYSQL_ROOT_PASSWORD: 'password'
MYSQL_USER: 'magento'
MYSQL_PASSWORD: 'password'
MYSQL_DATABASE: 'magento'
ports:
- 13006:3306
volumes:
composer:
driver: local
driver_opts:
type: tmpfs
device: tmpfs
o: "size=2048m,uid=1000,gid=1000"