aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker-compose.override.yml17
-rw-r--r--docker-compose.yml18
2 files changed, 34 insertions, 1 deletions
diff --git a/docker-compose.override.yml b/docker-compose.override.yml
index 3226e99..1c609af 100644
--- a/docker-compose.override.yml
+++ b/docker-compose.override.yml
@@ -26,6 +26,12 @@ services:
- type: "bind"
source: "."
target: "/var/www/packages.gentoo.org/htdocs/"
+ - type: volume
+ source: portage
+ target: /var/db/repos/gentoo
+ - type: volume
+ source: portage-git
+ target: /mnt/packages-tree
environment:
# "Redis:port" and "elasticsearch:port" refer to sibling containers.
- REDIS_PROVIDER=REDIS_URL
@@ -48,6 +54,12 @@ services:
- type: "bind"
source: "."
target: "/var/www/packages.gentoo.org/htdocs/"
+ - type: volume
+ source: portage
+ target: /var/db/repos/gentoo
+ - type: volume
+ source: portage-git
+ target: /mnt/packages-tree
environment:
- RAILS_ENV=development
- RAILS_SERVE_STATIC_FILES=1
@@ -87,4 +99,7 @@ services:
ports:
- '1358:1358'
links:
- - elasticsearch \ No newline at end of file
+ - elasticsearch
+volumes:
+ portage:
+ portage-git:
diff --git a/docker-compose.yml b/docker-compose.yml
index c90ef5c..719dc2e 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -21,6 +21,13 @@ services:
build: .
ports:
- 5000
+ volumes:
+ - type: volume
+ source: portage
+ target: /var/db/repos/gentoo
+ - type: volume
+ source: portage-git
+ target: /mnt/packages-tree
environment:
# "Redis:port" and "elasticsearch:port" refer to sibling containers.
- REDIS_PROVIDER=REDIS_URL
@@ -36,6 +43,13 @@ services:
command: bundle exec thin start -p 5000
sidekiq:
build: .
+ volumes:
+ - type: volume
+ source: portage
+ target: /var/db/repos/gentoo
+ - type: volume
+ source: portage-git
+ target: /mnt/packages-tree
environment:
- RAILS_ENV=production
- RAILS_SERVE_STATIC_FILES=1
@@ -63,3 +77,7 @@ services:
image: redis:4.0.6
ports:
- 6379
+
+volumes:
+ portage:
+ portage-git: