-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.prod.yml
106 lines (104 loc) · 2.8 KB
/
docker-compose.prod.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
version: '2'
volumes:
mysite-site-mysql:
driver: local
services:
nginx:
image: registry.gitlab.com/vitams/docker.my-site.ru/nginx:${HASH}
links:
- php7-fpm
depends_on:
- php7-fpm
volumes:
- /var/www/my-site.ru:/var/www/my-site.ru
- /var/log/container-nginx:/var/log/nginx
- /etc/localtime:/etc/localtime:ro
ports:
- 80:80
- 443:443
networks:
- mysite
restart: unless-stopped
php7-cli:
image: registry.gitlab.com/vitams/docker.my-site.ru/php7-cli:${HASH}
links:
- mysql
- memcached
depends_on:
- mysql
- memcached
volumes:
- /var/www/my-site.ru:/var/www/my-site.ru
- /etc/localtime:/etc/localtime:ro
networks:
- mysite
restart: unless-stopped
php7-fpm:
image: registry.gitlab.com/vitams/docker.my-site.ru/php7-fpm:${HASH}
links:
- mysql
- memcached
depends_on:
- mysql
- memcached
volumes:
- /var/www/my-site.ru:/var/www/my-site.ru
- /etc/localtime:/etc/localtime:ro
networks:
- mysite
restart: unless-stopped
mysql:
image: registry.gitlab.com/vitams/docker.my-site.ru/mysql:${HASH}
ports:
- 33061:3306
environment:
MYSQL_DATABASE: mysite
MYSQL_USER: mysite
MYSQL_PASSWORD: ""
MYSQL_ROOT_PASSWORD: ""
volumes:
- mysite-site-mysql:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
networks:
- mysite
restart: unless-stopped
memcached:
image: memcached:1.5-alpine
entrypoint:
- memcached
- --memory-limit=2048m
- --max-item-size=128m
volumes:
- /etc/localtime:/etc/localtime:ro
networks:
- mysite
restart: unless-stopped
sphinx:
image: registry.gitlab.com/vitams/docker.my-site.ru/sphinx:${HASH}
links:
- mysql
depends_on:
- mysql
volumes:
- /etc/localtime:/etc/localtime:ro
networks:
- mysite
restart: unless-stopped
smtp:
image: registry.gitlab.com/vitams/docker.my-site.ru/smtp:${HASH}
environment:
MAILNAME: "mysite"
RELAY_NETWORKS: ":10.100.0.0/24"
IGNORE_LIMITS: "true"
volumes:
- /etc/localtime:/etc/localtime:ro
networks:
- mysite
restart: unless-stopped
networks:
mysite:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.100.0.0/24