refactor(docker): clean up Docker and environment configurations, remove unused proxy settings and files

This commit is contained in:
2026-06-06 21:08:46 +03:30
parent dee1c3ab16
commit ca44e5b0db
12 changed files with 21 additions and 433 deletions

View File

@@ -1,51 +1,15 @@
x-build-args: &build-args
DOCKER_REGISTRY: ${DOCKER_REGISTRY:-docker.arvancloud.ir}
HTTP_PROXY: ${DOCKER_BUILD_HTTP_PROXY:-}
HTTPS_PROXY: ${DOCKER_BUILD_HTTPS_PROXY:-${DOCKER_BUILD_HTTP_PROXY:-}}
NO_PROXY: ${DOCKER_BUILD_NO_PROXY:-localhost,127.0.0.1,::1}
http_proxy: ${DOCKER_BUILD_HTTP_PROXY:-}
https_proxy: ${DOCKER_BUILD_HTTPS_PROXY:-${DOCKER_BUILD_HTTP_PROXY:-}}
no_proxy: ${DOCKER_BUILD_NO_PROXY:-localhost,127.0.0.1,::1}
DEBIAN_APT_MIRROR: ${DEBIAN_APT_MIRROR:-}
DEBIAN_SECURITY_APT_MIRROR: ${DEBIAN_SECURITY_APT_MIRROR:-}
DEBIAN_APT_DISABLE_UPDATES: ${DEBIAN_APT_DISABLE_UPDATES:-}
x-app-proxy-environment: &app-proxy-environment
HTTP_PROXY: ${APP_HTTP_PROXY:-}
HTTPS_PROXY: ${APP_HTTPS_PROXY:-${APP_HTTP_PROXY:-}}
NO_PROXY: ${APP_NO_PROXY:-localhost,127.0.0.1,::1,mariadb,nginx,app,queue,scheduler,vless-proxy}
services:
vless-proxy:
image: ${XRAY_IMAGE:-ghcr.io/xtls/xray-core:latest}
restart: unless-stopped
profiles:
- proxy
command: ["run", "-config", "/usr/local/etc/xray/config.json"]
volumes:
- type: bind
source: ${XRAY_CONFIG_FILE:-./docker/xray/config.local.json}
target: /usr/local/etc/xray/config.json
read_only: true
bind:
create_host_path: false
ports:
- "127.0.0.1:${VLESS_PROXY_HTTP_PORT:-2080}:8080"
- "127.0.0.1:${VLESS_PROXY_SOCKS_PORT:-2081}:1080"
networks:
- hoshpoint
app:
build:
context: .
target: app
args: *build-args
args:
DOCKER_REGISTRY: docker.arvancloud.ir
image: hoshpoint-backend-app:production
restart: unless-stopped
env_file:
- ${APP_ENV_FILE:-.env.production}
environment:
<<: *app-proxy-environment
APP_ENV: production
APP_DEBUG: "false"
LOG_CHANNEL: stderr
@@ -63,7 +27,8 @@ services:
build:
context: .
target: nginx
args: *build-args
args:
DOCKER_REGISTRY: docker.arvancloud.ir
image: hoshpoint-backend-nginx:production
restart: unless-stopped
depends_on:
@@ -81,7 +46,6 @@ services:
env_file:
- ${APP_ENV_FILE:-.env.production}
environment:
<<: *app-proxy-environment
APP_ENV: production
APP_DEBUG: "false"
LOG_CHANNEL: stderr
@@ -102,7 +66,6 @@ services:
env_file:
- ${APP_ENV_FILE:-.env.production}
environment:
<<: *app-proxy-environment
APP_ENV: production
APP_DEBUG: "false"
LOG_CHANNEL: stderr