Mount whole mastodon folder.
This commit is contained in:
parent
1ee7800a4d
commit
514e19c863
2 changed files with 8 additions and 7 deletions
|
@ -3,8 +3,8 @@ FROM tootsuite/mastodon:v4.1.4
|
|||
USER root
|
||||
|
||||
RUN mkdir -p /var/cache/apt/archives/partial && apt autoclean
|
||||
RUN apt update && apt-get install -y sudo vim htop && rm -rf /var/lib/apt/lists/*
|
||||
RUN apt update && apt-get install -y sudo vim htop git curl && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Restore working dir
|
||||
# USER mastodon
|
||||
WORKDIR /opt/mastodon
|
||||
|
||||
|
|
|
@ -45,8 +45,8 @@ services:
|
|||
- db
|
||||
- redis
|
||||
volumes:
|
||||
- ./mastodon/public:/mastodon/public
|
||||
# - ./mastodon/public/system:/mastodon/public/system
|
||||
- ./mastodon:/mastodon
|
||||
# - ./mastodon/public:/mastodon/public
|
||||
|
||||
streaming:
|
||||
container_name: mastodon-streaming
|
||||
|
@ -84,8 +84,8 @@ services:
|
|||
- CMD-SHELL
|
||||
- ps aux | grep '[s]idekiq 6' || false
|
||||
volumes:
|
||||
- ./mastodon/public:/mastodon/public
|
||||
# - ./mastodon/public/system:/mastodon/public/system
|
||||
- ./mastodon:/mastodon
|
||||
# - ./mastodon/public:/mastodon/public
|
||||
|
||||
nginx:
|
||||
container_name: mastodon-nginx
|
||||
|
@ -99,7 +99,8 @@ services:
|
|||
- 127.0.0.1:3001:80
|
||||
# - 127.0.0.1:3002:443
|
||||
volumes:
|
||||
- ./mastodon/public:/mastodon/public
|
||||
- ./mastodon:/mastodon
|
||||
# - ./mastodon/public:/mastodon/public
|
||||
- ./nginx/cache:/var/cache/nginx
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d
|
||||
|
||||
|
|
Loading…
Reference in a new issue