-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.develop.yml
87 lines (85 loc) · 1.74 KB
/
docker-compose.develop.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
version: '2'
volumes:
site-mysql-v1:
services:
nginx:
build: ./nginx
container_name: nginx
ports:
- '80:80'
links:
- php56-fpm:php
networks:
- site
volumes:
- ./logs/nginx:/var/log/nginx
- /var/www/site.ru:/var/www/site.ru
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
php56-fpm:
build: ./php56-fpm
container_name: php56-fpm
ports:
- '9000:9000'
links:
- mysql
- memcached
networks:
- site
volumes:
- /var/www/site.ru:/var/www/site.ru
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
php56-cli:
build: ./php56-cli
container_name: php56-cli
links:
- mysql
- memcached
networks:
- site
volumes:
- /var/www/site.ru:/var/www/site.ru
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
mysql:
build: ./mysql
container_name: mysql
ports:
- '3306:3306'
environment:
MYSQL_DATABASE: site
MYSQL_USER: site
MYSQL_PASSWORD: xV1S1YQFLwL1
MYSQL_ROOT_PASSWORD: ZVjS2YQaL6L1
networks:
- site
volumes:
- site-mysql-v1:/var/lib/mysql
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
memcached:
image: memcached:1.5-alpine
container_name: memcached
ports:
- '11211:11211'
entrypoint:
- memcached
- --memory-limit=1024m
- --max-item-size=32m
restart: unless-stopped
mem_limit: 1073741824
cpu_shares: 512
networks:
- site
networks:
site:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.0.0.0/8