File tree Expand file tree Collapse file tree 1 file changed +17
-18
lines changed Expand file tree Collapse file tree 1 file changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -5,22 +5,6 @@ networks:
5
5
driver : bridge
6
6
7
7
services :
8
- nginx :
9
- image : nginx:alpine
10
- container_name : hyperf_nginx
11
- ports :
12
- - " ${HTTP_PORT}:80"
13
- - " ${HTTPS_PORT}:443"
14
- volumes :
15
- - ./hyperf:/etc/nginx/www/hyperf:rw
16
- - ${NGINX_DIR}/config/nginx.conf:/etc/nginx/nginx.conf:ro
17
- - ${NGINX_DIR}/config/conf.d:/etc/nginx/conf.d:ro
18
- - ${NGINX_DIR}/log:/var/log/nginx:rw
19
- restart : always
20
- networks :
21
- - hyperf
22
- tty : true
23
-
24
8
redis :
25
9
container_name : hyperf_redis
26
10
image : redis:latest
@@ -72,9 +56,24 @@ services:
72
56
- " 9200:9200"
73
57
networks :
74
58
- hyperf
75
- # command: /bin/bash -c "rm -rf /opt/www/hyperf/runtime/container && php /opt/www/hyperf/bin/hyperf.php start"
59
+ command : " php /opt/www/hyperf/bin/hyperf.php start"
76
60
tty : true
77
61
62
+ nginx :
63
+ image : nginx:alpine
64
+ container_name : hyperf_nginx
65
+ ports :
66
+ - " ${HTTP_PORT}:80"
67
+ - " ${HTTPS_PORT}:443"
68
+ volumes :
69
+ - ./hyperf:/etc/nginx/www/hyperf:rw
70
+ - ${NGINX_DIR}/config/nginx.conf:/etc/nginx/nginx.conf:ro
71
+ - ${NGINX_DIR}/config/conf.d:/etc/nginx/conf.d:ro
72
+ - ${NGINX_DIR}/log:/var/log/nginx:rw
73
+ restart : always
74
+ networks :
75
+ - hyperf
76
+ tty : true
78
77
79
78
node :
80
79
container_name : hyperf_node
@@ -89,5 +88,5 @@ services:
89
88
- " 9527:9527"
90
89
networks :
91
90
- hyperf
92
- command : " npm start "
91
+ command : " npm run dev "
93
92
tty : true
You can’t perform that action at this time.
0 commit comments