-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose_cn.yml
executable file
·64 lines (62 loc) · 1.33 KB
/
docker-compose_cn.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
version: "3"
services:
nginx:
image: registry.cn-shenzhen.aliyuncs.com/yansongda/nginx
volumes:
- ./sites:/etc/nginx/conf.d
- ./www:/www
networks:
- lnmp
depends_on:
- php
expose:
- "80"
ports:
- "80:80"
php:
image: registry.cn-shenzhen.aliyuncs.com/yansongda/php-fpm
volumes:
- ./www:/www
networks:
- lnmp
depends_on:
- mariadb
- redis
- memcached
expose:
- "9000"
mariadb:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: yansongda
volumes:
- ./data/mariadb:/var/lib/mysql
networks:
- lnmp
expose:
- "3306"
ports:
- "3306:3306"
redis:
image: redis
volumes:
- ./data/redis:/data
networks:
- lnmp
expose:
- "6379"
memcached:
image: memcached
networks:
- lnmp
expose:
- "11211"
tools:
image: registry.cn-shenzhen.aliyuncs.com/yansongda/tools
volumes:
- ./www:/www
networks:
- lnmp
networks:
lnmp: