Skip to content

Commit

Permalink
extract Redis into its own Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Nov 17, 2022
1 parent 4f42c35 commit 6a0c0a2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM redis:alpine AS redis-server
ADD start-redis-server.sh /usr/bin/
RUN chmod +x /usr/bin/start-redis-server.sh
CMD ["start-redis-server.sh"]

FROM tootsuite/mastodon:v3.4.1
ENTRYPOINT []
4 changes: 4 additions & 0 deletions Dockerfile.redis
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM redis:alpine
ADD start-redis-server.sh /usr/bin/
RUN chmod +x /usr/bin/start-redis-server.sh
CMD ["start-redis-server.sh"]
3 changes: 3 additions & 0 deletions fly.redis.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
app = "mastodon-redis"

[build]
dockerfile = "Dockerfile.redis"

[[mounts]]
source = "mastodon_redis"
destination = "/data"

0 comments on commit 6a0c0a2

Please sign in to comment.