2025-03-20 09:22:31 +01:00
|
|
|
services:
|
|
|
|
|
postgres:
|
2026-02-14 18:13:05 +01:00
|
|
|
image: postgres:18.2-alpine3.23
|
2025-03-20 09:22:31 +01:00
|
|
|
restart: always
|
|
|
|
|
environment:
|
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
|
POSTGRES_DB: oxicloud
|
2026-02-15 17:53:25 +01:00
|
|
|
ports:
|
|
|
|
|
- "5432:5432"
|
2025-03-30 00:13:32 -07:00
|
|
|
networks:
|
|
|
|
|
- oxicloud
|
2025-03-20 09:22:31 +01:00
|
|
|
volumes:
|
2026-04-11 21:39:11 +02:00
|
|
|
- pg_data:/var/lib/postgresql/
|
2025-03-20 09:22:31 +01:00
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
|
|
|
interval: 5s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
2026-03-04 15:14:07 +01:00
|
|
|
|
2025-03-30 00:13:32 -07:00
|
|
|
oxicloud:
|
2026-04-17 21:52:59 +00:00
|
|
|
image: diocrafts/oxicloud:latest
|
2025-03-30 00:13:32 -07:00
|
|
|
restart: always
|
2026-06-20 14:42:10 +02:00
|
|
|
environment:
|
|
|
|
|
# Return freed heap pages to the OS promptly. mimalloc retains them by
|
|
|
|
|
# default, so idle RSS clamps at the peak even after the in-memory caches
|
|
|
|
|
# expire; purging immediately makes RSS track the live working set
|
|
|
|
|
# (benchmarked: ~400 MB reclaimed on musl/aarch64) at no throughput cost.
|
|
|
|
|
# Also baked into the Dockerfile; set here so it applies to the prebuilt
|
|
|
|
|
# image too.
|
|
|
|
|
MIMALLOC_PURGE_DELAY: "0"
|
2025-03-30 00:13:32 -07:00
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
ports:
|
|
|
|
|
- "8086:8086"
|
|
|
|
|
networks:
|
|
|
|
|
- oxicloud
|
|
|
|
|
depends_on:
|
2026-02-12 14:45:52 +01:00
|
|
|
postgres:
|
|
|
|
|
condition: service_healthy
|
2026-02-21 18:41:18 -08:00
|
|
|
env_file:
|
|
|
|
|
- .env
|
2025-03-31 06:20:15 +02:00
|
|
|
volumes:
|
|
|
|
|
- storage_data:/app/storage
|
2026-05-11 00:22:03 +02:00
|
|
|
healthcheck:
|
2026-06-08 15:25:39 +02:00
|
|
|
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8086/ready || exit 1"]
|
2026-05-11 00:22:03 +02:00
|
|
|
interval: 30s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
start_period: 30s
|
|
|
|
|
retries: 3
|
2025-03-30 00:13:32 -07:00
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
oxicloud:
|
|
|
|
|
driver: bridge
|
2025-03-20 09:22:31 +01:00
|
|
|
|
|
|
|
|
volumes:
|
2025-03-23 22:44:18 +01:00
|
|
|
pg_data:
|
2025-03-31 06:20:15 +02:00
|
|
|
storage_data:
|