mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-15 09:01:13 +00:00
init
This commit is contained in:
parent
4f174ec3a8
commit
db1dea097f
81 changed files with 6263 additions and 545 deletions
75
infra/docker/compose.dev.yml
Normal file
75
infra/docker/compose.dev.yml
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
services:
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
POSTGRES_DB: nextcloud
|
||||
POSTGRES_USER: nextcloud
|
||||
POSTGRES_PASSWORD: nextcloud
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U nextcloud -d nextcloud"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
command: ["redis-server", "--appendonly", "yes"]
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
volumes:
|
||||
- redis-data:/data
|
||||
|
||||
control-plane:
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: apps/control-plane/Dockerfile
|
||||
environment:
|
||||
PORT: 3000
|
||||
BETTERNAS_VERSION: local-dev
|
||||
NEXTCLOUD_BASE_URL: http://nextcloud
|
||||
ports:
|
||||
- "3001:3000"
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD-SHELL",
|
||||
"node -e \"fetch('http://127.0.0.1:3000/health').then((response) => process.exit(response.ok ? 0 : 1)).catch(() => process.exit(1))\""
|
||||
]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
|
||||
nextcloud:
|
||||
image: nextcloud:31-apache
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
control-plane:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
POSTGRES_HOST: db
|
||||
POSTGRES_DB: nextcloud
|
||||
POSTGRES_USER: nextcloud
|
||||
POSTGRES_PASSWORD: nextcloud
|
||||
REDIS_HOST: redis
|
||||
NEXTCLOUD_ADMIN_USER: admin
|
||||
NEXTCLOUD_ADMIN_PASSWORD: admin
|
||||
BETTERNAS_CONTROL_PLANE_URL: http://control-plane:3000
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
- nextcloud-data:/var/www/html
|
||||
- nextcloud-custom-apps:/var/www/html/custom_apps
|
||||
|
||||
volumes:
|
||||
nextcloud-data:
|
||||
nextcloud-custom-apps:
|
||||
postgres-data:
|
||||
redis-data:
|
||||
Loading…
Add table
Add a link
Reference in a new issue