-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (62 loc) · 1023 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
60
61
62
63
64
65
66
67
68
data:
image: busybox:latest
volumes:
- ./www:/app
entrypoint: top
fpm:
build: ./php/php56
volumes_from:
- data
expose:
- 9000
links:
- mysql:mysql
- mongo:mongo
- memcached:memcached
- redis:redis
environment:
XDEBUG_CONFIG: "idekey=PHPSTORM remote_enable=On remote_connect_back=On"
cli:
build: ./php/php56
volumes_from:
- data
working_dir: /app
tty: true
stdin_open: true
command: '/bin/bash'
tty: true
links:
- mysql:mysql
- mongo:mongo
- memcached:memcached
- redis:redis
nginx:
build: ./nginx
ports:
- "80:80"
volumes:
- ./www:/app
- ./sites:/etc/nginx/conf.d
- ./logs:/var/log/nginx
links:
- fpm
mysql:
image: mysql:5.7
volumes:
- ./mysql:/var/lib/mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: rootpassword
mongo:
image: mongo
ports:
- "27017:27017"
memcached:
image: memcached
ports:
- "11211:11211"
redis:
image: redis
ports:
- "6379:6379"