adding mastodon

This commit is contained in:
msnie
2025-01-31 14:44:28 +01:00
parent ec57796e0d
commit dd59fdb75c
+25 -6
View File
@@ -10,7 +10,10 @@ services:
- /srv/mastodon/postgres14:/var/lib/postgresql/data - /srv/mastodon/postgres14:/var/lib/postgresql/data
# added from the default, otherwise you'll need to manually create a `mastodon` db and user/role # added from the default, otherwise you'll need to manually create a `mastodon` db and user/role
# env_file: db.env # env_file: db.env
env_file: .env.production env_file:
- .env
- .env.production
- db.env
environment: environment:
- 'POSTGRES_HOST_AUTH_METHOD=trust' - 'POSTGRES_HOST_AUTH_METHOD=trust'
- 'POSTGRES_USER=postgres' - 'POSTGRES_USER=postgres'
@@ -34,7 +37,10 @@ services:
# env_file: # env_file:
# - .env # - .env
# - db.env # - db.env
env_file: .env.production env_file:
- .env
- .env.production
- db.env
ports: ports:
- 3344:3000 - 3344:3000
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"
@@ -62,7 +68,10 @@ services:
# env_file: # env_file:
# - .env # - .env
# - db.env # - db.env
env_file: .env.production env_file:
- .env
- .env.production
- db.env
command: node ./streaming command: node ./streaming
environment: environment:
- 'REDIS_URL=redis://redis:6379' - 'REDIS_URL=redis://redis:6379'
@@ -90,6 +99,7 @@ services:
restart: always restart: always
env_file: env_file:
- .env - .env
- .env.production
- db.env - db.env
command: bundle exec sidekiq command: bundle exec sidekiq
depends_on: depends_on:
@@ -177,7 +187,10 @@ networks:
# # build: . # # build: .
# image: ghcr.io/mastodon/mastodon:v4.3.3 # image: ghcr.io/mastodon/mastodon:v4.3.3
# restart: always # restart: always
# env_file: .env.production # env_file:
- .env
- .env.production
- db.env
# command: bundle exec puma -C config/puma.rb # command: bundle exec puma -C config/puma.rb
# networks: # networks:
# - traefik # - traefik
@@ -201,7 +214,10 @@ networks:
# # context: . # # context: .
# image: ghcr.io/mastodon/mastodon-streaming:v4.3.3 # image: ghcr.io/mastodon/mastodon-streaming:v4.3.3
# restart: always # restart: always
# env_file: .env.production # env_file:
- .env
- .env.production
- db.env
# command: node ./streaming/index.js # command: node ./streaming/index.js
# networks: # networks:
# - traefik # - traefik
@@ -220,7 +236,10 @@ networks:
# # build: . # # build: .
# image: ghcr.io/mastodon/mastodon:v4.3.3 # image: ghcr.io/mastodon/mastodon:v4.3.3
# restart: always # restart: always
# env_file: .env.production # env_file:
- .env
- .env.production
- db.env
# command: bundle exec sidekiq # command: bundle exec sidekiq
# depends_on: # depends_on:
# - db # - db