commit 31465093837224ce8852e46412a914733d01221f Author: gsr Date: Sun Sep 6 11:11:14 2026 +0300 ✨ initial diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..604c801 --- /dev/null +++ b/.env.example @@ -0,0 +1,17 @@ +POSTGRES_DB=oxicloud +POSTGRES_USER=postgres +POSTGRES_PASSWORD=MYQvsRD7js3rXb2fyR5o7CRNCUMhru4En9n + +OXICLOUD_STORAGE_PATH=/app/storage +OXICLOUD_STATIC_PATH=/app/static + +OXICLOUD_SERVER_PORT=8086 +OXICLOUD_SERVER_HOST=0.0.0.0 + +OXICLOUD_DB_CONNECTION_STRING=postgres://postgres:MYQvsRD7js3rXb2fyR5o7CRNCUMhru4En9n@postgres/oxicloud + +OXICLOUD_OIDC_ENABLED=false +OXICLOUD_WOPI_ENABLED=false + +MIMALLOC_PURGE_DELAY=0 +MIMALLOC_ALLOW_LARGE_OS_PAGES=0 \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..277fea0 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +``` +hx /etc/caddy/Caddyfile +``` + +``` +cloud.gsrhost.ru { + reverse_proxy 127.0.0.1:8086 +} +``` + +``` +caddy reload --config /etc/caddy/Caddyfile +``` \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..552d431 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,49 @@ +services: + postgres: + image: postgres:18.2-alpine3.23 + restart: unless-stopped + + environment: + POSTGRES_DB: ${POSTGRES_DB} + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + + networks: + - oxicloud + + volumes: + - oxicloud_pg_data:/var/lib/postgresql/data + + healthcheck: + test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] + interval: 5s + timeout: 5s + retries: 5 + + oxicloud: + image: diocrafts/oxicloud:latest + restart: unless-stopped + + ports: + - "127.0.0.1:8086:8086" + + networks: + - oxicloud + + env_file: + - .env + + volumes: + - oxicloud_storage:/app/storage + + depends_on: + postgres: + condition: service_healthy + +networks: + oxicloud: + driver: bridge + +volumes: + oxicloud_pg_data: + oxicloud_storage: \ No newline at end of file