-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (68 loc) · 1.46 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
version: "3"
services:
nginx:
image: nginx
container_name: nginx_name
ports:
- "81:80"
volumes:
- ./typecho/:/var/www/html/:rw
- ./conf/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/logs:/var/log/nginx
environment:
TZ: "Asia/Shanghai"
restart: always
networks:
- default
php:
build: .
container_name: php_name
volumes:
- ./www/:/var/www/html/:rw
- ./php/logs:/usr/local/var/log/
- ./conf/my-php-conf.ini:/usr/local/etc/php/conf.d/my-php-conf.ini:rw
restart: always
cap_add:
- SYS_PTRACE
networks:
- default
mysql:
image: mysql:5.7
container_name: mysql_name
ports:
- "3307:3306"
volumes:
- ./mysql/data:/var/lib/mysql/:rw
- ./conf/my.cnf:/etc/mysql/my.cnf:rw
restart: always
networks:
- default
environment:
MYSQL_ROOT_PASSWORD: "root"
TZ: "Asia/Shanghai"
redis:
image: redis
container_name: redis_name
ports:
- "6380:6379"
volumes:
- ./redis/data:/data
- ./conf/redis.conf:/etc/redis/redis.conf
restart: always
environment:
TZ: "Asia/Shanghai"
networks:
- default
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin_name
ports:
- "9080:80"
environment:
- PMA_ARBITRARY=1
depends_on:
- mysql
networks:
- default
networks:
default: