| 
									
										
										
										
											2024-05-10 17:10:42 +02:00
										 |  |  | version: '3.8'
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | services:
 | 
					
						
							|  |  |  |   nodebb:
 | 
					
						
							|  |  |  |     build: .
 | 
					
						
							|  |  |  |     # image: ghcr.io/nodebb/nodebb:latest
 | 
					
						
							|  |  |  |     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
 | 
					
						
							|  |  |  |       - ./install/docker/setup.json:/usr/src/app/setup.json
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   redis:
 | 
					
						
							| 
									
										
										
										
											2025-08-20 14:14:31 -04:00
										 |  |  |     image: redis:8.2.1-alpine
 | 
					
						
							| 
									
										
										
										
											2024-05-10 17:10:42 +02:00
										 |  |  |     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
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | volumes:
 | 
					
						
							|  |  |  |   redis-data:
 | 
					
						
							|  |  |  |     driver: local
 | 
					
						
							|  |  |  |     driver_opts:
 | 
					
						
							|  |  |  |       o: bind
 | 
					
						
							|  |  |  |       type: none
 | 
					
						
							|  |  |  |       device: ./.docker/database/redis
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   nodebb-build:
 | 
					
						
							|  |  |  |     driver: local
 | 
					
						
							|  |  |  |     driver_opts:
 | 
					
						
							|  |  |  |       o: bind
 | 
					
						
							|  |  |  |       type: none
 | 
					
						
							|  |  |  |       device: ./.docker/build
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   nodebb-uploads:
 | 
					
						
							|  |  |  |     driver: local
 | 
					
						
							|  |  |  |     driver_opts:
 | 
					
						
							|  |  |  |       o: bind
 | 
					
						
							|  |  |  |       type: none
 | 
					
						
							|  |  |  |       device: ./.docker/public/uploads
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   nodebb-config:
 | 
					
						
							|  |  |  |     driver: local
 | 
					
						
							|  |  |  |     driver_opts:
 | 
					
						
							|  |  |  |       o: bind
 | 
					
						
							|  |  |  |       type: none
 | 
					
						
							|  |  |  |       device: ./.docker/config
 |