Skip to content

Commit 71b5fe3

Browse files
Merge #315
315: Add bundle volume to cache downloaded gems r=brunoocasali a=brunoocasali It improves the docker-compose.yml to prevent downloading the same gem many times after opening a container. Co-authored-by: Bruno Casali <[email protected]>
2 parents 02636c5 + c29dbfc commit 71b5fe3

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

docker-compose.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1-
version: "3.7"
1+
version: "3.8"
2+
3+
volumes:
4+
bundle:
25

36
services:
4-
meilisearch_ruby:
5-
image: ruby
7+
package:
8+
image: ruby:3.0
69
tty: true
710
stdin_open: true
811
working_dir: /home/app
912
environment:
1013
- MEILISEARCH_HOST=meilisearch
1114
- MEILISEARCH_PORT=7700
15+
- BUNDLE_PATH=/vendor/bundle
1216
ports:
1317
- "3001:3000"
1418
volumes:
1519
- ./:/home/app
20+
- bundle:/vendor/bundle
21+
links:
22+
- meilisearch
1623

1724
meilisearch:
1825
image: getmeili/meilisearch:latest
@@ -21,6 +28,5 @@ services:
2128
container_name: meilisearch
2229
ports:
2330
- "7700:7700"
24-
# Uncomment this to run the test suite
25-
# environment:
26-
# - MEILI_MASTER_KEY=masterKey
31+
environment:
32+
- MEILI_MASTER_KEY=masterKey

0 commit comments

Comments
 (0)