Skip to content

Commit d95fb09

Browse files
author
chenchangqin
committed
develop#配置变更
1 parent 3678726 commit d95fb09

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

docker-compose.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@ networks:
55
driver: bridge
66

77
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-
248
redis:
259
container_name: hyperf_redis
2610
image: redis:latest
@@ -72,9 +56,24 @@ services:
7256
- "9200:9200"
7357
networks:
7458
- 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"
7660
tty: true
7761

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
7877

7978
node:
8079
container_name: hyperf_node
@@ -89,5 +88,5 @@ services:
8988
- "9527:9527"
9089
networks:
9190
- hyperf
92-
command: "npm start"
91+
command: "npm run dev"
9392
tty: true

0 commit comments

Comments
 (0)