Files
2026-09-06 11:24:31 +03:00

49 lines
855 B
YAML

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/
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: