代码拉取完成,页面将自动刷新
同步操作将从 guoliang1994/eznat_server 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: '3.5'
services:
nginx:
container_name: ${APP_NAME}_nginx
restart: always
privileged: true
working_dir: /eznat_server
build:
context: ./docker/build/nginx
ports:
- "${NGINX_HTTP_PORT}:80"
- "${NGINX_HTTPS_PORT}:443"
volumes:
- ./:/eznat_server:rw
- ./docker/nginx/config/nginx.conf:/usr/local/nginx/conf/nginx.conf:ro
- ./docker/nginx/config/conf.d:/usr/local/nginx/conf/conf.d:rw
- ./docker/nginx/log:/var/log/nginx:rw
command: ["sh", "-c", "exec nginx -g 'daemon off;'"]
php:
container_name: ${APP_NAME}_php
restart: always
privileged: true
user: root
working_dir: /eznat_server
links:
- mysql
build:
context: ./docker/build/php
volumes:
- ./:/eznat_server:rw
- ./docker/php/conf/php-fpm.conf:/usr/local/etc/php/php-fpm.conf
- ./docker/php/conf/php.ini:/usr/local/etc/php/php.ini
- ./docker/php/log:/var/log:rw
ports:
- ${PORT_MAP_OPEN}
- ${HTTP_MAP_SERVER_PORT}:80
- ${HTTPS_MAP_SERVER_PORT}:443
- "${CHANNEL_PORT}:${CHANNEL_PORT}"
command:
- sh
- -c
- |
set -eux \
&& composer install \
&& php artisan key:generate \
&& chown www-data:www-data * -R \
&& php eznat/server.php start -d \
&& php-fpm
mysql:
image: mysql:5.7
container_name: ${APP_NAME}_mysql
restart: always
privileged: true
ports:
- "${DB_PORT}:${DB_PORT}"
volumes:
- ./:/eznat_server:rw
- ./docker/mysql/data:/var/lib/mysql:rw
- ./docker/mysql/config/mysql.cnf:/etc/mysql/conf.d/mysql.cnf:ro
- ./docker/mysql/log:/var/log/mysql:rw
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
node:
user: "root"
build:
context: ./docker/build/node
container_name: ${APP_NAME}_node
privileged: true
working_dir: /eznat_server/eznat_web
volumes:
- ./:/eznat_server:rw
command:
- sh
- -c
- |
set -eux \
&& npm install \
&& npm run build:prod
networks:
default:
name: ${APP_NAME}-net
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。