chore: build
This commit is contained in:
@@ -1,2 +1,15 @@
|
||||
RUSTFS_ACCESS_KEY=iBacJPHUHSf6SMTnxrr
|
||||
RUSTFS_SECRET_KEY=4jNzZhstv1WkwTwtvR4gHSbrx01m4sJl4LBBleeJ
|
||||
PROJECT_URL=https://10.0.0.4
|
||||
PROJECT_SECRET=dOkGZW0Iz+Ga8hBAttU+TlOf/RYwTe0txz7fyGzINzI=
|
||||
POSTGRES_USER=portabase
|
||||
POSTGRES_PASSWORD=8BIAtiI580SzvupmKWW
|
||||
POSTGRES_HOST=db
|
||||
POSTGRES_PORT=5432
|
||||
POSTGRES_DB=portabase
|
||||
DATABASE_URL=postgresql://portabase:8BIAtiI580SzvupmKWW@db:5432/portabase?schema=public
|
||||
SKIP_ONBOARDING=true
|
||||
API_ENABLED=true
|
||||
AUTH_DEFAULT_USER_NAME=admin
|
||||
AUTH_DEFAULT_USER=admin@portabase.local
|
||||
AUTH_DEFAULT_PASSWORD=Admin@Portabase2026!
|
||||
OPENAPI_ENABLED=true
|
||||
TRUSTED_DOMAINS=https://10.0.0.4
|
||||
|
||||
@@ -5,31 +5,54 @@ services:
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "10.0.0.4:80:80"
|
||||
- "10.0.0.4:8080:8080"
|
||||
- "10.0.0.4:9000:9000"
|
||||
- "10.0.0.4:9001:9001"
|
||||
- "10.0.0.4:443:443"
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- ./certs:/etc/nginx/certs:ro
|
||||
- nginx_logs:/var/log/nginx
|
||||
depends_on:
|
||||
- minio
|
||||
- portabase
|
||||
networks:
|
||||
- s3_net
|
||||
|
||||
minio:
|
||||
image: minio/minio:latest
|
||||
container_name: s3_minio
|
||||
restart: unless-stopped
|
||||
hostname: minio
|
||||
volumes:
|
||||
- /mnt/data:/data
|
||||
portabase:
|
||||
image: portabase/portabase:latest
|
||||
container_name: portabase-app
|
||||
restart: always
|
||||
env_file: .env
|
||||
environment:
|
||||
- MINIO_ROOT_USER=admin
|
||||
- MINIO_ROOT_PASSWORD=admin@12345
|
||||
- MINIO_ADDRESS=:9000
|
||||
- MINIO_CONSOLE_ADDRESS=:9001
|
||||
command: minio server /data --console-address :9001
|
||||
- TZ=Europe/Paris
|
||||
expose:
|
||||
- "80"
|
||||
volumes:
|
||||
- portabase-data:/data
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost/api/health"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
networks:
|
||||
- s3_net
|
||||
|
||||
db:
|
||||
image: postgres:17-alpine
|
||||
container_name: portabase-pg
|
||||
restart: always
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_DB: portabase
|
||||
POSTGRES_USER: portabase
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U portabase -d portabase"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
- s3_net
|
||||
|
||||
@@ -102,3 +125,5 @@ volumes:
|
||||
clamav_db:
|
||||
clamav_logs:
|
||||
clamav_scan_logs:
|
||||
portabase-data:
|
||||
postgres-data:
|
||||
|
||||
@@ -7,9 +7,9 @@ events {
|
||||
http {
|
||||
resolver 127.0.0.11 valid=10s ipv6=off;
|
||||
|
||||
# ── MinIO Console GUI HTTPS (VPN: 10.0.0.4:8080) ────────
|
||||
# ── Portabase Dashboard HTTPS (VPN: 10.0.0.4:443) ───────
|
||||
server {
|
||||
listen 8080 ssl;
|
||||
listen 443 ssl;
|
||||
server_name 10.0.0.4 _;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/cert.pem;
|
||||
@@ -17,11 +17,19 @@ http {
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
|
||||
access_log /var/log/nginx/minio_console_access.log;
|
||||
error_log /var/log/nginx/minio_console_error.log;
|
||||
access_log /var/log/nginx/portabase_access.log;
|
||||
error_log /var/log/nginx/portabase_error.log;
|
||||
|
||||
location /api/v1 {
|
||||
return 403;
|
||||
}
|
||||
|
||||
location /openapi {
|
||||
return 403;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://minio:9001;
|
||||
proxy_pass http://portabase:80;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
@@ -31,7 +39,7 @@ http {
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_buffering off;
|
||||
proxy_read_timeout 300s;
|
||||
client_max_body_size 500m;
|
||||
client_max_body_size 50m;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,56 +48,7 @@ http {
|
||||
listen 80;
|
||||
server_name _;
|
||||
location / {
|
||||
return 301 https://$host:8080$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
# ── MinIO Console Direct HTTPS (VPN: 10.0.0.4:9001) ──────
|
||||
server {
|
||||
listen 9001 ssl;
|
||||
server_name 10.0.0.4 _;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/cert.pem;
|
||||
ssl_certificate_key /etc/nginx/certs/key.pem;
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
|
||||
access_log /var/log/nginx/minio_console_direct_access.log;
|
||||
error_log /var/log/nginx/minio_console_direct_error.log;
|
||||
|
||||
location / {
|
||||
proxy_pass http://minio:9001;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_buffering off;
|
||||
proxy_read_timeout 300s;
|
||||
client_max_body_size 500m;
|
||||
}
|
||||
}
|
||||
|
||||
# ── MinIO S3 API HTTP (VPN: 10.0.0.4:9000) ────────────────
|
||||
server {
|
||||
listen 9000;
|
||||
server_name 10.0.0.4 _;
|
||||
|
||||
access_log /var/log/nginx/minio_s3_api_access.log;
|
||||
error_log /var/log/nginx/minio_s3_api_error.log;
|
||||
|
||||
location / {
|
||||
proxy_pass http://minio:9000;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto http;
|
||||
proxy_buffering off;
|
||||
proxy_read_timeout 300s;
|
||||
client_max_body_size 2g;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user