✨ initial
This commit is contained in:
@@ -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:
|
||||
Reference in New Issue
Block a user