-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (54 loc) · 972 Bytes
/
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
data:
image: busybox:latest
volumes:
- ./:/app
entrypoint: tail -f /dev/null
fpm:
build: docker/php
volumes_from:
- data
volumes_from:
- data
expose:
- 9000
links:
- db
- mailcatcher
environment:
XDEBUG_CONFIG: "idekey=PHPSTORM remote_enable=On remote_connect_back=On"
cli:
build: docker/php
volumes_from:
- data
working_dir: /app
tty: true
stdin_open: true
command: '/bin/bash'
tty: true
links:
- db
- mailcatcher
nginx:
image: nginx:latest
ports:
- "127.0.0.1:8000:80"
volumes:
- ./:/app
- ./vhost.conf:/etc/nginx/conf.d/vhost.conf
links:
- fpm
mailcatcher:
image: schickling/mailcatcher:latest
ports:
- "127.0.0.1:1080:1080"
db:
image: mysql:5.7
volumes:
- /var/lib/mysql
ports:
- "127.0.0.1:33060:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: yii2-starter-kit
MYSQL_USER: ysk_dbu
MYSQL_PASSWORD: ysk_pass