修改本地服务
This commit is contained in:
parent
82a135ab58
commit
0d8ff4771d
|
@ -3,6 +3,8 @@ networks:
|
|||
driver: ${NETWORKS_DRIVER}
|
||||
backend:
|
||||
driver: ${NETWORKS_DRIVER}
|
||||
custom_network:
|
||||
driver: bridge
|
||||
volumes:
|
||||
mysql:
|
||||
driver: ${VOLUMES_DRIVER}
|
||||
|
@ -194,6 +196,8 @@ services:
|
|||
- "${WORKSPACE_VUE_CLI_UI_HOST_PORT}:8000"
|
||||
- "${WORKSPACE_ANGULAR_CLI_SERVE_HOST_PORT}:4200"
|
||||
- "${WORKSPACE_VITE_PORT}:5173"
|
||||
- "${TCP_HOST_PORT}:5291"
|
||||
- "${UDP_HOST_PORT}:5292"
|
||||
tty: true
|
||||
environment:
|
||||
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
|
||||
|
@ -203,8 +207,8 @@ services:
|
|||
- DOCKER_CERT_PATH=/certs/client
|
||||
- CHOKIDAR_USEPOLLING=true
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
- custom_network
|
||||
container_name: workspace
|
||||
links:
|
||||
- docker-in-docker
|
||||
|
||||
|
@ -316,7 +320,7 @@ services:
|
|||
depends_on:
|
||||
- workspace
|
||||
networks:
|
||||
- backend
|
||||
- custom_network
|
||||
links:
|
||||
- docker-in-docker
|
||||
|
||||
|
@ -371,7 +375,7 @@ services:
|
|||
extra_hosts:
|
||||
- "dockerhost:${DOCKER_HOST_IP}"
|
||||
networks:
|
||||
- backend
|
||||
- custom_network
|
||||
### Laravel Horizon ############################################
|
||||
laravel-horizon:
|
||||
build:
|
||||
|
@ -443,8 +447,7 @@ services:
|
|||
depends_on:
|
||||
- php-fpm
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
- custom_network
|
||||
|
||||
### OpenResty Server #########################################
|
||||
openresty:
|
||||
|
@ -555,7 +558,7 @@ services:
|
|||
ports:
|
||||
- "${MYSQL_PORT}:3306"
|
||||
networks:
|
||||
- backend
|
||||
- custom_network
|
||||
|
||||
### Percona ################################################
|
||||
percona:
|
||||
|
@ -756,7 +759,8 @@ services:
|
|||
ports:
|
||||
- "${REDIS_PORT}:6379"
|
||||
networks:
|
||||
- backend
|
||||
- custom_network
|
||||
container_name: redis
|
||||
|
||||
### Redis Cluster ##########################################
|
||||
redis-cluster:
|
||||
|
@ -858,7 +862,8 @@ services:
|
|||
depends_on:
|
||||
- php-fpm
|
||||
networks:
|
||||
- backend
|
||||
- custom_network
|
||||
container_name: rabbitmq
|
||||
|
||||
### Mercure #############################################
|
||||
mercure:
|
||||
|
@ -1455,7 +1460,8 @@ services:
|
|||
ports:
|
||||
- 9010:9000
|
||||
networks:
|
||||
- backend
|
||||
- custom_network
|
||||
container_name: portainer
|
||||
|
||||
### Gitlab ################################################
|
||||
gitlab:
|
||||
|
@ -1487,7 +1493,8 @@ services:
|
|||
- "${GITLAB_HOST_HTTPS_PORT}:443"
|
||||
- "${GITLAB_HOST_SSH_PORT}:22"
|
||||
networks:
|
||||
- backend
|
||||
- custom_network
|
||||
container_name: gitlab
|
||||
depends_on:
|
||||
- redis
|
||||
- postgres
|
||||
|
@ -2136,3 +2143,20 @@ services:
|
|||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
|
||||
### gitea ##################################################
|
||||
gitea:
|
||||
build: ./gitea
|
||||
volumes:
|
||||
- ./gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
networks:
|
||||
- custom_network
|
||||
container_name: gitea
|
||||
ports:
|
||||
- "4300:3000"
|
||||
- "2221:2222"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
FROM gitea/gitea:latest-rootless
|
||||
LABEL maintainer="ykxiao <yk_9001@icloud.com>"
|
|
@ -0,0 +1,45 @@
|
|||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
server {
|
||||
listen 80;
|
||||
server_name mes.api.com;
|
||||
root /var/www/mes-admin-api/public;
|
||||
index index.php;
|
||||
|
||||
location = /index.php {
|
||||
# Ensure that there is no such file named "not_exists"
|
||||
# in your "public" directory.
|
||||
try_files /not_exists @swoole;
|
||||
}
|
||||
# any php files must not be accessed
|
||||
#location ~* \.php$ {
|
||||
# return 404;
|
||||
#}
|
||||
location / {
|
||||
try_files $uri $uri/ @swoole;
|
||||
}
|
||||
|
||||
location @swoole {
|
||||
set $suffix "";
|
||||
|
||||
if ($uri = /index.php) {
|
||||
set $suffix ?$query_string;
|
||||
}
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header Scheme $scheme;
|
||||
proxy_set_header SERVER_PORT $server_port;
|
||||
proxy_set_header REMOTE_ADDR $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
|
||||
# IF https
|
||||
# proxy_set_header HTTPS "on";
|
||||
|
||||
proxy_pass http://workspace:4200$suffix;
|
||||
}
|
||||
}
|
|
@ -1,8 +1,9 @@
|
|||
[program:laravel-worker]
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
command=php /var/www/artisan queue:work --sleep=3 --tries=3
|
||||
command=php /var/www/mes-admin-api/artisan queue:work --tries=3
|
||||
autostart=true
|
||||
autorestart=true
|
||||
numprocs=8
|
||||
user=laradock
|
||||
numprocs=3
|
||||
user=root
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/var/www/mes-admin-api/storage/logs/laravel-worker.log
|
||||
|
|
Loading…
Reference in New Issue