Mount whole mastodon folder.

This commit is contained in:
Sunoru 2023-07-17 21:03:30 +01:00
parent 1ee7800a4d
commit 514e19c863
No known key found for this signature in database
GPG key ID: 4F279F385559D05D
2 changed files with 8 additions and 7 deletions

View file

@ -3,8 +3,8 @@ FROM tootsuite/mastodon:v4.1.4
USER root USER root
RUN mkdir -p /var/cache/apt/archives/partial && apt autoclean 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 # Restore working dir
# USER mastodon
WORKDIR /opt/mastodon WORKDIR /opt/mastodon

View file

@ -45,8 +45,8 @@ services:
- db - db
- redis - redis
volumes: volumes:
- ./mastodon/public:/mastodon/public - ./mastodon:/mastodon
# - ./mastodon/public/system:/mastodon/public/system # - ./mastodon/public:/mastodon/public
streaming: streaming:
container_name: mastodon-streaming container_name: mastodon-streaming
@ -84,8 +84,8 @@ services:
- CMD-SHELL - CMD-SHELL
- ps aux | grep '[s]idekiq 6' || false - ps aux | grep '[s]idekiq 6' || false
volumes: volumes:
- ./mastodon/public:/mastodon/public - ./mastodon:/mastodon
# - ./mastodon/public/system:/mastodon/public/system # - ./mastodon/public:/mastodon/public
nginx: nginx:
container_name: mastodon-nginx container_name: mastodon-nginx
@ -99,7 +99,8 @@ services:
- 127.0.0.1:3001:80 - 127.0.0.1:3001:80
# - 127.0.0.1:3002:443 # - 127.0.0.1:3002:443
volumes: volumes:
- ./mastodon/public:/mastodon/public - ./mastodon:/mastodon
# - ./mastodon/public:/mastodon/public
- ./nginx/cache:/var/cache/nginx - ./nginx/cache:/var/cache/nginx
- ./nginx/conf.d:/etc/nginx/conf.d - ./nginx/conf.d:/etc/nginx/conf.d