refactor: update docker-compose configuration and remove unused .env file

This commit is contained in:
Mercurio 2025-06-02 15:51:49 +02:00
parent 7d68283330
commit 6014af2475
2 changed files with 4 additions and 14 deletions

View file

@ -1,6 +0,0 @@
DATABASE_URL=postgres://postgres:password@192.168.1.120:6532/postgres
JWT_SECRET=supersecurejwtsecret
ENCRYPTION_KEY=0123456789abcdef0123456789abcdef
ROCKET_ADDRESS=0.0.0.0
ROCKET_PORT=8082
ROCKET_LOG=info

View file

@ -1,22 +1,18 @@
version: '3.8'
services: services:
web: web:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
ports: ports:
- "80:8080" - "9933:8082"
volumes: volumes:
- ./data:/data - ./data:/data
environment: environment:
- DATABASE_URL=postgres://litecloud:litecloud_password@db:5432/litecloud - DATABASE_URL=postgres://litecloud:litecloud_password@db:5432/litecloud
- RUST_LOG=info - ROCKET_LOG=info
- MASTER_KEY=${MASTER_KEY:-default_master_key_change_in_production} - ENCRYPTION_KEY=${MASTER_KEY:-default_master_key_change_in_production}
- JWT_SECRET=${JWT_SECRET:-default_jwt_secret_change_in_production} - JWT_SECRET=${JWT_SECRET:-default_jwt_secret_change_in_production}
- STORAGE_PATH=/data - STORAGE_PATH=/data
- MAX_UPLOAD_SIZE=104857600 # 100MB default
- DEFAULT_USER_QUOTA=1073741824 # 1GB default
depends_on: depends_on:
- db - db
restart: unless-stopped restart: unless-stopped