From 31465093837224ce8852e46412a914733d01221f Mon Sep 17 00:00:00 2001 From: gsr Date: Sun, 6 Sep 2026 11:11:14 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20initial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 17 ++++++++++++++++ README.md | 13 ++++++++++++ docker-compose.yml | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 .env.example create mode 100644 README.md create mode 100644 docker-compose.yml 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