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
|
/data
|
||||||
/tmp
|
/tmp
|
||||||
|
|
2
.gitmodules
vendored
2
.gitmodules
vendored
|
@ -1,3 +1,3 @@
|
||||||
[submodule "mastodon"]
|
[submodule "mastodon"]
|
||||||
path = 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:
|
services:
|
||||||
db:
|
db:
|
||||||
container_name: mastodon-db
|
container_name: mastodon-db
|
||||||
restart: always
|
restart: always
|
||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
|
mem_limit: 512mb
|
||||||
shm_size: 256mb
|
shm_size: 256mb
|
||||||
networks:
|
networks:
|
||||||
- internal_network
|
- internal_network
|
||||||
|
@ -19,6 +19,7 @@ services:
|
||||||
container_name: mastodon-redis
|
container_name: mastodon-redis
|
||||||
restart: always
|
restart: always
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
|
mem_limit: 128mb
|
||||||
networks:
|
networks:
|
||||||
- internal_network
|
- internal_network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
@ -30,6 +31,7 @@ services:
|
||||||
container_name: mastodon-web
|
container_name: mastodon-web
|
||||||
build: .
|
build: .
|
||||||
restart: always
|
restart: always
|
||||||
|
mem_limit: 1024mb
|
||||||
env_file: .env.production
|
env_file: .env.production
|
||||||
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
|
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
|
||||||
networks:
|
networks:
|
||||||
|
@ -49,6 +51,7 @@ services:
|
||||||
container_name: mastodon-streaming
|
container_name: mastodon-streaming
|
||||||
build: .
|
build: .
|
||||||
restart: always
|
restart: always
|
||||||
|
mem_limit: 128mb
|
||||||
env_file: .env.production
|
env_file: .env.production
|
||||||
command: node ./streaming
|
command: node ./streaming
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -68,6 +71,7 @@ services:
|
||||||
container_name: mastodon-sidekiq
|
container_name: mastodon-sidekiq
|
||||||
build: .
|
build: .
|
||||||
restart: always
|
restart: always
|
||||||
|
mem_limit: 512mb
|
||||||
env_file: .env.production
|
env_file: .env.production
|
||||||
command: bundle exec sidekiq
|
command: bundle exec sidekiq
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -87,6 +91,7 @@ services:
|
||||||
container_name: mastodon-nginx
|
container_name: mastodon-nginx
|
||||||
restart: always
|
restart: always
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
|
mem_limit: 64mb
|
||||||
depends_on:
|
depends_on:
|
||||||
- web
|
- web
|
||||||
networks:
|
networks:
|
||||||
|
@ -105,7 +110,8 @@ services:
|
||||||
container_name: mastodon-duplicity
|
container_name: mastodon-duplicity
|
||||||
hostname: mastodon-duplicity
|
hostname: mastodon-duplicity
|
||||||
restart: always
|
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
|
env_file: .env.duplicity
|
||||||
networks:
|
networks:
|
||||||
- internal_network
|
- internal_network
|
||||||
|
|
Loading…
Reference in a new issue