2025-02-15 16:30:05 +01:00
|
|
|
services:
|
2025-02-19 00:01:10 +01:00
|
|
|
nginx:
|
|
|
|
image: nginx:{{ services.fedi_dk_nodebb.nginx_version }}
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- external_services
|
|
|
|
volumes:
|
|
|
|
- "./nginx:/etc/nginx/conf.d:ro"
|
2025-02-19 00:32:17 +01:00
|
|
|
- "./build:/usr/src/app/build:ro"
|
2025-02-19 00:01:10 +01:00
|
|
|
environment:
|
|
|
|
VIRTUAL_HOST: {{ services.fedi_dk_nodebb.domain }}
|
|
|
|
VIRTUAL_PORT: 80
|
|
|
|
LETSENCRYPT_HOST: {{ services.fedi_dk_nodebb.domain }}
|
|
|
|
LETSENCRYPT_EMAIL: {{ letsencrypt_email }}
|
2025-02-19 00:28:36 +01:00
|
|
|
depends_on:
|
|
|
|
- app
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:{{ services.fedi_dk_nodebb.redis_version }}
|
|
|
|
restart: unless-stopped
|
|
|
|
tmpfs:
|
|
|
|
- /var/lib/redis
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 3s
|
|
|
|
retries: 5
|
2025-02-19 00:01:10 +01:00
|
|
|
|
2025-02-15 17:13:03 +01:00
|
|
|
mongodb:
|
2025-02-15 23:10:55 +01:00
|
|
|
image: mongo:{{ services.fedi_dk_nodebb.mongodb_version }}
|
2025-02-15 17:13:03 +01:00
|
|
|
restart: always
|
2025-02-15 16:30:05 +01:00
|
|
|
volumes:
|
2025-02-19 00:01:10 +01:00
|
|
|
- "./mongodb:/data/db:rw"
|
|
|
|
- "./mongodb-user-init.js:/docker-entrypoint-initdb.d/user-init.js:ro"
|
2025-02-15 16:30:05 +01:00
|
|
|
environment:
|
|
|
|
MONGO_INITDB_ROOT_USERNAME: nodebb
|
2025-02-15 23:10:55 +01:00
|
|
|
MONGO_INITDB_ROOT_PASSWORD: {{ fedi_dk_nodebb_secrets.mongodb_password }}
|
2025-02-19 00:28:36 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "mongosh", "--quiet", "127.0.0.1/test", "--eval", "'quit(db.runCommand({ ping: 1 }).ok ? 0 : 2)'"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 5
|
|
|
|
start_period: 40s
|
2025-02-15 16:30:05 +01:00
|
|
|
|
2025-02-15 17:13:03 +01:00
|
|
|
app:
|
2025-02-15 23:10:55 +01:00
|
|
|
image: ghcr.io/nodebb/nodebb:{{ services.fedi_dk_nodebb.version }}
|
2025-02-15 17:13:03 +01:00
|
|
|
restart: always
|
2025-02-15 17:35:26 +01:00
|
|
|
networks:
|
2025-02-19 00:17:05 +01:00
|
|
|
default:
|
|
|
|
aliases:
|
2025-02-19 00:28:36 +01:00
|
|
|
- app.nodebb
|
2025-02-19 00:17:05 +01:00
|
|
|
postfix:
|
2025-02-15 16:30:05 +01:00
|
|
|
volumes:
|
2025-02-19 00:01:10 +01:00
|
|
|
- "./build:/usr/src/app/build:rw"
|
|
|
|
- "./uploads:/usr/src/app/public/uploads:rw"
|
|
|
|
- "./config:/opt/config:rw"
|
|
|
|
- "./setup.json:/usr/src/app/setup.json:ro"
|
2025-02-15 17:31:44 +01:00
|
|
|
depends_on:
|
2025-02-19 00:28:36 +01:00
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
|
|
|
mongodb:
|
|
|
|
condition: service_healthy
|
2025-02-15 17:35:26 +01:00
|
|
|
|
|
|
|
networks:
|
2025-02-15 22:38:24 +01:00
|
|
|
postfix:
|
|
|
|
external: true
|
2025-02-15 17:35:26 +01:00
|
|
|
external_services:
|
|
|
|
external: true
|