Files
Oxicloud/docker-compose.yml
T

60 lines
1.4 KiB
YAML
Raw Normal View History

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
ports:
- "5432:5432"
2025-03-30 00:13:32 -07:00
networks:
- oxicloud
2025-03-20 09:22:31 +01:00
volumes:
- 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
2025-03-30 00:13:32 -07:00
oxicloud:
image: diocrafts/oxicloud:latest
2025-03-30 00:13:32 -07:00
restart: always
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:
postgres:
condition: service_healthy
env_file:
- .env
2025-03-31 06:20:15 +02:00
volumes:
- storage_data:/app/storage
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8086/ready || exit 1"]
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: