46 lines
1.4 KiB
Text
46 lines
1.4 KiB
Text
![]() |
services:
|
||
|
nodebb:
|
||
|
image: ghcr.io/nodebb/nodebb:{{ services.nodebb.version }}
|
||
|
restart: unless-stopped
|
||
|
ports:
|
||
|
# - '4567:4567' # comment this out if you don't want to expose NodeBB to the host, or change the first number to any port you want
|
||
|
volumes:
|
||
|
- ./nodebb-build:/usr/src/app/build
|
||
|
- ./nodebb-uploads:/usr/src/app/public/uploads
|
||
|
- ./nodebb-config:/opt/config
|
||
|
- ./setup.json:/usr/src/app/setup.json
|
||
|
|
||
|
mongo:
|
||
|
image: 'mongo:7-jammy'
|
||
|
restart: unless-stopped
|
||
|
ports:
|
||
|
- '27017:27017'
|
||
|
environment:
|
||
|
MONGO_INITDB_ROOT_USERNAME: nodebb
|
||
|
MONGO_INITDB_ROOT_PASSWORD: nodebb
|
||
|
MONGO_INITDB_DATABASE: nodebb
|
||
|
volumes:
|
||
|
- ./mongo-data:/data/db
|
||
|
- ./mongodb-user-init.js:/docker-entrypoint-initdb.d/user-init.js
|
||
|
redis:
|
||
|
image: redis:7.4.2-alpine
|
||
|
restart: unless-stopped
|
||
|
command: ['redis-server', '--appendonly', 'yes', '--loglevel', 'warning']
|
||
|
# command: ['redis-server', '--save', '60', '1', '--loglevel', 'warning'] # uncomment if you want to use snapshotting instead of AOF
|
||
|
volumes:
|
||
|
- ./redis-data:/data
|
||
|
profiles:
|
||
|
- redis
|
||
|
|
||
|
postgres:
|
||
|
image: postgres:17.2-alpine
|
||
|
restart: unless-stopped
|
||
|
environment:
|
||
|
POSTGRES_USER: nodebb
|
||
|
POSTGRES_PASSWORD: nodebb
|
||
|
POSTGRES_DB: nodebb
|
||
|
volumes:
|
||
|
- ./postgres-data:/var/lib/postgresql/data
|
||
|
profiles:
|
||
|
- postgres
|