Fixed according to report
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
# ignore: false
|
|
||||||
# documentation: https://docs.nodebb.org/
|
# documentation: https://docs.nodebb.org/
|
||||||
# slogan: A next-generation discussion platform.
|
# slogan: A next-generation discussion platform.
|
||||||
# tags: communication, forums, discussion
|
# tags: communication, forums, discussion
|
||||||
@@ -10,27 +9,28 @@ services:
|
|||||||
image: ghcr.io/nodebb/nodebb:latest
|
image: ghcr.io/nodebb/nodebb:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- SERVICE_FQDN_nodebb_4567
|
- SERVICE_FQDN_NODEBB_4567
|
||||||
volumes:
|
volumes:
|
||||||
- nodebb-build:/usr/src/app/build
|
- nodebb-build:/usr/src/app/build
|
||||||
- nodebb-uploads:/usr/src/app/public/uploads
|
- nodebb-uploads:/usr/src/app/public/uploads
|
||||||
- nodebb-config:/opt/config
|
- nodebb-config:/opt/config
|
||||||
- type: bind
|
command: >
|
||||||
source: ./.docker/config/setup.json
|
/bin/bash -c "
|
||||||
target: /usr/src/app/setup.json
|
cat > /usr/src/app/setup.json <<EOL
|
||||||
isDirectory: false
|
|
||||||
content: |
|
|
||||||
{
|
{
|
||||||
"defaults": {
|
\"defaults\": {
|
||||||
"postgres": {
|
\"postgres\": {
|
||||||
"host": "postgres",
|
\"host\": \"postgres\",
|
||||||
"port": 5432,
|
\"port\": 5432,
|
||||||
"database": "nodebb",
|
\"database\": \"nodebb\",
|
||||||
"username": "nodebb",
|
\"username\": \"${SERVICE_USER_POSTGRES}\",
|
||||||
"password": "nodebb"
|
\"password\": \"${SERVICE_PASSWORD_POSTGRES}\"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
EOL
|
||||||
|
&& tini -- entrypoint.sh
|
||||||
|
"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:4567"]
|
test: ["CMD", "curl", "-f", "http://localhost:4567"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
@@ -42,8 +42,8 @@ services:
|
|||||||
image: postgres:17.2-alpine
|
image: postgres:17.2-alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: nodebb
|
POSTGRES_USER: ${SERVICE_USER_POSTGRES}
|
||||||
POSTGRES_PASSWORD: nodebb
|
POSTGRES_PASSWORD: ${SERVICE_PASSWORD_POSTGRES}
|
||||||
POSTGRES_DB: nodebb
|
POSTGRES_DB: nodebb
|
||||||
volumes:
|
volumes:
|
||||||
- postgres-data:/var/lib/postgresql/data
|
- postgres-data:/var/lib/postgresql/data
|
||||||
@@ -52,9 +52,3 @@ services:
|
|||||||
interval: 5s
|
interval: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
timeout: 2s
|
timeout: 2s
|
||||||
|
|
||||||
volumes:
|
|
||||||
postgres-data:
|
|
||||||
nodebb-build:
|
|
||||||
nodebb-uploads:
|
|
||||||
nodebb-config:
|
|
||||||
Reference in New Issue
Block a user