-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (65 loc) · 1.2 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
55
56
57
58
59
60
61
62
63
64
65
version: '3.3'
services:
web:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
volumes:
- ./sites:/sites
- ./conf.d:/etc/nginx/conf.d:cached
links:
- php
php:
build: build/php
container_name: php
volumes:
- ./sites:/sites:cached
links:
- database
- database_57
environment:
- SET_CONTAINER_TIMEZONE=true
- TZ=Europe/Amsterdam
php_56:
build: build/php56
container_name: php_56
volumes:
- ./sites:/sites:cached
links:
- database
- database_57
database_57:
container_name: database_57
image: mysql:5.7
volumes:
- ./backup:/backup:cached
- ./mysql_data_57:/var/lib/mysql:cached
environment:
- MYSQL_ROOT_PASSWORD=root
ports:
- '3307:3306'
ulimits:
nofile:
soft: 20000
hard: 40000
database:
container_name: database
image: mysql:latest
volumes:
- ./backup:/backup:cached
- ./mysql_data:/var/lib/mysql:cached
environment:
- MYSQL_ROOT_PASSWORD=root
ports:
- '3306:3306'
expose:
- '3306'
ulimits:
nofile:
soft: 20000
hard: 40000
volumes:
backup:
mysql_data:
sites: