notesnook: no yaml features (swarm does not seem happy about them)

This commit is contained in:
2025-10-07 20:07:10 +02:00
parent e6eab7f511
commit 389bb59aaf

View File

@@ -1,22 +1,8 @@
x-server-discovery: &server-discovery
NOTESNOOK_SERVER_PORT: 5264
NOTESNOOK_SERVER_HOST: notesnook-server
IDENTITY_SERVER_PORT: 8264
IDENTITY_SERVER_HOST: identity-server
SSE_SERVER_PORT: 7264
SSE_SERVER_HOST: sse-server
SELF_HOSTED: 1
IDENTITY_SERVER_URL: ${AUTH_SERVER_PUBLIC_URL}
NOTESNOOK_APP_HOST: ${NOTESNOOK_APP_PUBLIC_URL}
x-env-files: &env-files
- .env
services: services:
validate: validate:
image: vandot/alpine-bash image: vandot/alpine-bash
entrypoint: /bin/bash entrypoint: /bin/bash
env_file: *env-files env_file: .env
command: command:
- -c - -c
- | - |
@@ -94,7 +80,7 @@ services:
- s3data:/data/s3 - s3data:/data/s3
environment: environment:
MINIO_BROWSER: "on" MINIO_BROWSER: "on"
env_file: *env-files env_file: .env
command: server /data/s3 --console-address :9090 command: server /data/s3 --console-address :9090
healthcheck: healthcheck:
test: timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1 test: timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1
@@ -119,7 +105,7 @@ services:
networks: networks:
- notesnook - notesnook
entrypoint: /bin/bash entrypoint: /bin/bash
env_file: *env-files env_file: .env
command: command:
- -c - -c
- | - |
@@ -135,7 +121,7 @@ services:
networks: networks:
- notesnook - notesnook
- proxy - proxy
env_file: *env-files env_file: .env
depends_on: depends_on:
- notesnook-db - notesnook-db
healthcheck: healthcheck:
@@ -145,7 +131,15 @@ services:
retries: 3 retries: 3
start_period: 60s start_period: 60s
environment: environment:
<<: *server-discovery NOTESNOOK_SERVER_PORT: 5264
NOTESNOOK_SERVER_HOST: notesnook-server
IDENTITY_SERVER_PORT: 8264
IDENTITY_SERVER_HOST: identity-server
SSE_SERVER_PORT: 7264
SSE_SERVER_HOST: sse-server
SELF_HOSTED: 1
IDENTITY_SERVER_URL: ${AUTH_SERVER_PUBLIC_URL}
NOTESNOOK_APP_HOST: ${NOTESNOOK_APP_PUBLIC_URL}
MONGODB_CONNECTION_STRING: mongodb://notesnookdb:27017/identity?replSet=rs0 MONGODB_CONNECTION_STRING: mongodb://notesnookdb:27017/identity?replSet=rs0
MONGODB_DATABASE_NAME: identity MONGODB_DATABASE_NAME: identity
labels: labels:
@@ -164,7 +158,7 @@ services:
networks: networks:
- notesnook - notesnook
- proxy - proxy
env_file: *env-files env_file: .env
depends_on: depends_on:
- notesnook-s3 - notesnook-s3
- setup-s3 - setup-s3
@@ -176,7 +170,15 @@ services:
retries: 3 retries: 3
start_period: 60s start_period: 60s
environment: environment:
<<: *server-discovery NOTESNOOK_SERVER_PORT: 5264
NOTESNOOK_SERVER_HOST: notesnook-server
IDENTITY_SERVER_PORT: 8264
IDENTITY_SERVER_HOST: identity-server
SSE_SERVER_PORT: 7264
SSE_SERVER_HOST: sse-server
SELF_HOSTED: 1
IDENTITY_SERVER_URL: ${AUTH_SERVER_PUBLIC_URL}
NOTESNOOK_APP_HOST: ${NOTESNOOK_APP_PUBLIC_URL}
MONGODB_CONNECTION_STRING: mongodb://notesnookdb:27017/?replSet=rs0 MONGODB_CONNECTION_STRING: mongodb://notesnookdb:27017/?replSet=rs0
MONGODB_DATABASE_NAME: notesnook MONGODB_DATABASE_NAME: notesnook
S3_INTERNAL_SERVICE_URL: "http://notesnook-s3:9000" S3_INTERNAL_SERVICE_URL: "http://notesnook-s3:9000"
@@ -201,7 +203,7 @@ services:
image: streetwriters/sse:latest image: streetwriters/sse:latest
ports: ports:
- 7264 - 7264
env_file: *env-files env_file: .env
depends_on: depends_on:
- identity-server - identity-server
- notesnook-server - notesnook-server
@@ -222,13 +224,21 @@ services:
retries: 3 retries: 3
start_period: 60s start_period: 60s
environment: environment:
<<: *server-discovery NOTESNOOK_SERVER_PORT: 5264
NOTESNOOK_SERVER_HOST: notesnook-server
IDENTITY_SERVER_PORT: 8264
IDENTITY_SERVER_HOST: identity-server
SSE_SERVER_PORT: 7264
SSE_SERVER_HOST: sse-server
SELF_HOSTED: 1
IDENTITY_SERVER_URL: ${AUTH_SERVER_PUBLIC_URL}
NOTESNOOK_APP_HOST: ${NOTESNOOK_APP_PUBLIC_URL}
monograph-server: monograph-server:
image: streetwriters/monograph:latest image: streetwriters/monograph:latest
# ports: # ports:
# - 6264:3000 # - 6264:3000
env_file: *env-files env_file: .env
depends_on: depends_on:
- notesnook-server - notesnook-server
networks: networks:
@@ -241,7 +251,15 @@ services:
retries: 3 retries: 3
start_period: 60s start_period: 60s
environment: environment:
<<: *server-discovery NOTESNOOK_SERVER_PORT: 5264
NOTESNOOK_SERVER_HOST: notesnook-server
IDENTITY_SERVER_PORT: 8264
IDENTITY_SERVER_HOST: identity-server
SSE_SERVER_PORT: 7264
SSE_SERVER_HOST: sse-server
SELF_HOSTED: 1
IDENTITY_SERVER_URL: ${AUTH_SERVER_PUBLIC_URL}
NOTESNOOK_APP_HOST: ${NOTESNOOK_APP_PUBLIC_URL}
API_HOST: http://notesnook-server:5264 API_HOST: http://notesnook-server:5264
PUBLIC_URL: ${MONOGRAPH_PUBLIC_URL} PUBLIC_URL: ${MONOGRAPH_PUBLIC_URL}
labels: labels: