Skip to content

Commit f919190

Browse files
Revert "Stop specifying volume in Dockerfile and docker-compose files."
This reverts commit 91761f4.
1 parent 91761f4 commit f919190

4 files changed

Lines changed: 9 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ WORKDIR "${GEMSTASH_HOME}/app"
2424
COPY "app/" "${GEMSTASH_HOME}/app"
2525
RUN bundle install --jobs 4 --retry 3
2626

27+
VOLUME "${GEMSTASH_HOME}/data"
28+
2729
EXPOSE 9292
2830
USER ${GEMSTASH_USER}:${GEMSTASH_USER}
2931
CMD ["bundle", "exec", "gemstash", "start", "--no-daemonize"]

docker-compose.mysql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ services:
1414
GEMSTASH_PUMA_THREADS: 4
1515
ports:
1616
- 9292:9292
17+
volumes:
18+
- gemstash_data:/home/gemstash/data
1719
links:
1820
- mysql
1921
depends_on:

docker-compose.postgres.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ services:
1414
GEMSTASH_PUMA_THREADS: 4
1515
ports:
1616
- 9292:9292
17+
volumes:
18+
- gemstash_data:/home/gemstash/data
1719
links:
1820
- postgres
1921
postgres:

docker-compose.sqlite.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ services:
55
build:
66
context: .
77
dockerfile: Dockerfile
8-
# image: zappi/gemstash:1.2.0
8+
image: zappi/gemstash:1.2.0
99
environment:
1010
RACK_ENV: production
1111
ports:
1212
- 9292:9292
13+
volumes:
14+
- gemstash_data:/home/gemstash/data
1315

1416
volumes:
1517
gemstash_data:

0 commit comments

Comments
 (0)