Files
Oxicloud/docker-compose.yml
T
2026-05-11 00:53:25 +02:00

52 lines
1004 B
YAML

services:
postgres:
image: postgres:18.2-alpine3.23
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: oxicloud
ports:
- "5432:5432"
networks:
- oxicloud
volumes:
- pg_data:/var/lib/postgresql/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
oxicloud:
image: diocrafts/oxicloud:latest
restart: always
build:
context: .
dockerfile: Dockerfile
ports:
- "8086:8086"
networks:
- oxicloud
depends_on:
postgres:
condition: service_healthy
env_file:
- .env
volumes:
- storage_data:/app/storage
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8086/ready || exit 1"]
interval: 30s
timeout: 5s
start_period: 30s
retries: 3
networks:
oxicloud:
driver: bridge
volumes:
pg_data:
storage_data: