@@ -8,16 +8,8 @@ services:
88 - ollama_data:/root/.ollama # persists ollama data
99 restart : unless-stopped
1010
11- # this provides your translator microservice
11+ # Translator microservice
1212 translator :
13-
14- # ##########################################################################
15- # NOTE: you will need to update the build path to point to your translator service code
16- # you will also need to manually rebuild the image when you make changes to your code
17- #
18- # docker compose -f docker-compose-redis.yml build translator
19- # ##########################################################################
20-
2113 build : ../translator-service
2214 command : flask run --host=0.0.0.0
2315 depends_on :
@@ -31,22 +23,27 @@ services:
3123 working_dir : /app
3224 restart : unless-stopped
3325
26+ # NodeBB Forum
3427 nodebb :
3528 build : .
3629 # image: ghcr.io/nodebb/nodebb:latest
3730 restart : unless-stopped
3831 ports :
39- - ' 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
32+ - ' 4567:4567'
4033 volumes :
4134 - nodebb-build:/usr/src/app/build
4235 - nodebb-uploads:/usr/src/app/public/uploads
4336 - nodebb-config:/opt/config
4437 - ./install/docker/setup.json:/usr/src/app/setup.json
38+ depends_on :
39+ - redis
40+ - translator
41+
42+ # Redis cache
4543 redis :
4644 image : redis:8.0.1-alpine
4745 restart : unless-stopped
4846 command : ['redis-server', '--appendonly', 'yes', '--loglevel', 'warning']
49- # command: ["redis-server", "--save", "60", "1", "--loglevel", "warning"] # uncomment if you want to use snapshotting instead of AOF
5047 volumes :
5148 - redis-data:/data
5249
@@ -55,4 +52,28 @@ volumes:
5552
5653 redis-data :
5754 driver : local
58- driver_opts:
55+ driver_opts :
56+ o : bind
57+ type : none
58+ device : ./data/redis
59+
60+ nodebb-build :
61+ driver : local
62+ driver_opts :
63+ o : bind
64+ type : none
65+ device : ./.docker/build
66+
67+ nodebb-uploads :
68+ driver : local
69+ driver_opts :
70+ o : bind
71+ type : none
72+ device : ./.docker/uploads
73+
74+ nodebb-config :
75+ driver : local
76+ driver_opts :
77+ o : bind
78+ type : none
79+ device : ./.docker/config
0 commit comments