Update mem limit. Set up git-crypt. Use own forgejo to serve.
This commit is contained in:
parent
792e0f1327
commit
8b4f3aebdc
6 changed files with 10 additions and 4 deletions
BIN
.env.duplicity
Normal file
BIN
.env.duplicity
Normal file
Binary file not shown.
BIN
.env.production
Normal file
BIN
.env.production
Normal file
Binary file not shown.
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.env* filter=git-crypt diff=git-crypt
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,2 @@
|
|||
.env*
|
||||
/data
|
||||
/tmp
|
||||
|
|
2
.gitmodules
vendored
2
.gitmodules
vendored
|
@ -1,3 +1,3 @@
|
|||
[submodule "mastodon"]
|
||||
path = mastodon
|
||||
url = https://github.com/sunoru/mastodon.git
|
||||
url = https://roost.sunoru.com/sunoru/mastodon.git
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
version: "3"
|
||||
services:
|
||||
db:
|
||||
container_name: mastodon-db
|
||||
restart: always
|
||||
image: postgres:15-alpine
|
||||
mem_limit: 512mb
|
||||
shm_size: 256mb
|
||||
networks:
|
||||
- internal_network
|
||||
|
@ -19,6 +19,7 @@ services:
|
|||
container_name: mastodon-redis
|
||||
restart: always
|
||||
image: redis:7-alpine
|
||||
mem_limit: 128mb
|
||||
networks:
|
||||
- internal_network
|
||||
healthcheck:
|
||||
|
@ -30,6 +31,7 @@ services:
|
|||
container_name: mastodon-web
|
||||
build: .
|
||||
restart: always
|
||||
mem_limit: 1024mb
|
||||
env_file: .env.production
|
||||
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
|
||||
networks:
|
||||
|
@ -49,6 +51,7 @@ services:
|
|||
container_name: mastodon-streaming
|
||||
build: .
|
||||
restart: always
|
||||
mem_limit: 128mb
|
||||
env_file: .env.production
|
||||
command: node ./streaming
|
||||
depends_on:
|
||||
|
@ -68,6 +71,7 @@ services:
|
|||
container_name: mastodon-sidekiq
|
||||
build: .
|
||||
restart: always
|
||||
mem_limit: 512mb
|
||||
env_file: .env.production
|
||||
command: bundle exec sidekiq
|
||||
depends_on:
|
||||
|
@ -87,6 +91,7 @@ services:
|
|||
container_name: mastodon-nginx
|
||||
restart: always
|
||||
image: nginx:latest
|
||||
mem_limit: 64mb
|
||||
depends_on:
|
||||
- web
|
||||
networks:
|
||||
|
@ -105,7 +110,8 @@ services:
|
|||
container_name: mastodon-duplicity
|
||||
hostname: mastodon-duplicity
|
||||
restart: always
|
||||
image: ghcr.io/tecnativa/docker-duplicity-postgres-s3:v3.1.1
|
||||
image: ghcr.io/tecnativa/docker-duplicity-postgres-s3:v3.3.1
|
||||
mem_limit: 256mb
|
||||
env_file: .env.duplicity
|
||||
networks:
|
||||
- internal_network
|
||||
|
|
Loading…
Reference in a new issue