-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (78 loc) · 1.71 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (78 loc) · 1.71 KB
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
# yaml 配置实例
version: '3'
services:
mysql:
image: "docker.cnb.cool/php127/docker/mysql:5.7.44"
ports:
- "3306:3306"
volumes:
- "./mysql/data:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: root
restart: always
privileged: true
networks:
- webnet
redis:
image: "docker.cnb.cool/php127/docker/redis:6.2.5"
ports:
- "6379:6379"
volumes:
- "./redis/data:/data/redis/data"
- "./redis/redis.conf:/etc/redis.conf"
command: "redis-server /etc/redis.conf"
restart: always
privileged: true
networks:
- webnet
# php5:
# build: ./php5
# ports:
# - "5000:9000"
# restart: always
# privileged: true
# networks:
# - webnet
# volumes:
# - "../../:/www/"
# - "./php5/php.ini:/usr/local/etc/php/conf.d/php.ini"
php:
# build: ./php
image: "docker.cnb.cool/php127/docker/php:7.4.33-fpm-alpine"
ports:
- "7000:9000"
- "8090:8090"
restart: always
privileged: true
networks:
- webnet
volumes:
- "../../:/www/"
- "./php/php.ini:/usr/local/etc/php/conf.d/php.ini"
# php8:
# build: ./php8
## image: "php:8.0.24-fpm"
# ports:
# - "8000:9000"
# restart: always
# privileged: true
# networks:
# - webnet
# volumes:
# - "../../:/www/"
# - "./php8/php.ini:/usr/local/etc/php/conf.d/php.ini"
nginx:
image: "docker.cnb.cool/php127/docker/nginx:1.26.2"
ports:
- "80:80"
restart: always
privileged: true
networks:
- webnet
volumes:
- "../../:/www/"
- "./nginx/vhost:/etc/nginx/conf.d"
- "./nginx/conf/nginx.conf:/etc/nginx/nginx.conf"
networks:
webnet:
driver: bridge