-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (82 loc) · 1.6 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3'
networks:
lan_access:
driver: bridge
services:
php5:
container_name: php5
build: ./docker/files/php5
tty: true
restart: unless-stopped
expose:
- "9000"
volumes:
- ./www:/data/www
- ./docker/log/php:/var/log/php-fpm
networks:
- lan_access
- default
php7:
container_name: php7
build: ./docker/files/php7
tty: true
restart: unless-stopped
expose:
- "9000"
volumes:
- ./www:/data/www
- ./docker/log/php:/var/log/php-fpm
networks:
- lan_access
- default
nginx:
container_name: nginx
image: nginx:1.17.9
tty: true
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./www:/data/www
- ./docker/config/nginx/conf.d:/etc/nginx/conf.d
depends_on:
- php5
- php7
networks:
- lan_access
- default
mysql:
container_name: mysql
image: mysql:5.6
restart: unless-stopped
expose:
- "3306"
ports:
- "3306:3306"
volumes:
- ./docker/data/mysql:/var/lib/mysql
- ./share:/data
environment:
- MYSQL_ROOT_PASSWORD=root
redis:
container_name: redis
image: redis:3.0.6
restart: unless-stopped
expose:
- "6379"
ports:
- "6379:6379"
volumes:
- ./docker/data/redis:/data
command: redis-server --appendonly yes
memcached:
container_name: memcached
image: memcached:1.4.23
restart: unless-stopped
expose:
- "11211"
ports:
- "11211:11211"
volumes:
- ./docker/data/memcached:/data