mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-15 06:04:40 +00:00
introduce .env
This commit is contained in:
parent
4f46d2f3df
commit
5d97c33d7e
6 changed files with 51 additions and 24 deletions
|
|
@ -30,20 +30,35 @@ services:
|
|||
dockerfile: apps/control-plane/Dockerfile
|
||||
environment:
|
||||
PORT: 3000
|
||||
BETTERNAS_VERSION: local-dev
|
||||
NEXTCLOUD_BASE_URL: http://nextcloud
|
||||
BETTERNAS_VERSION: ${BETTERNAS_VERSION}
|
||||
NEXTCLOUD_BASE_URL: ${NEXTCLOUD_BASE_URL}
|
||||
BETTERNAS_EXAMPLE_MOUNT_URL: ${BETTERNAS_EXAMPLE_MOUNT_URL}
|
||||
BETTERNAS_NODE_DIRECT_ADDRESS: ${BETTERNAS_NODE_DIRECT_ADDRESS}
|
||||
ports:
|
||||
- "3001:3000"
|
||||
- "${BETTERNAS_CONTROL_PLANE_PORT}: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))"',
|
||||
]
|
||||
test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1:3000/health"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
|
||||
node-agent:
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: apps/node-agent/Dockerfile
|
||||
environment:
|
||||
PORT: 8090
|
||||
BETTERNAS_EXPORT_PATH: /data/export
|
||||
ports:
|
||||
- "${BETTERNAS_NODE_AGENT_PORT}:8090"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1:8090/health"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
volumes:
|
||||
- ${BETTERNAS_EXPORT_PATH}:/data/export
|
||||
|
||||
nextcloud:
|
||||
image: nextcloud:31-apache
|
||||
depends_on:
|
||||
|
|
@ -53,17 +68,19 @@ services:
|
|||
condition: service_healthy
|
||||
control-plane:
|
||||
condition: service_healthy
|
||||
node-agent:
|
||||
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
|
||||
NEXTCLOUD_ADMIN_USER: ${NEXTCLOUD_ADMIN_USER}
|
||||
NEXTCLOUD_ADMIN_PASSWORD: ${NEXTCLOUD_ADMIN_PASSWORD}
|
||||
BETTERNAS_CONTROL_PLANE_URL: http://control-plane:3000
|
||||
ports:
|
||||
- "8080:80"
|
||||
- "${BETTERNAS_NEXTCLOUD_PORT}:80"
|
||||
volumes:
|
||||
- nextcloud-data:/var/www/html
|
||||
- nextcloud-custom-apps:/var/www/html/custom_apps
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue