mastodon
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
# This file is designed for production server deployment, not local development work
|
||||||
|
# For a containerized local dev environment, see: https://github.com/mastodon/mastodon/blob/main/docs/DEVELOPMENT.md#docker
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
@@ -9,6 +11,7 @@ services:
|
|||||||
healthcheck:
|
healthcheck:
|
||||||
test: ['CMD', 'pg_isready', '-U', 'postgres']
|
test: ['CMD', 'pg_isready', '-U', 'postgres']
|
||||||
volumes:
|
volumes:
|
||||||
|
# - ./postgres14:/var/lib/postgresql/data
|
||||||
- /srv/mastodon/postgres14:/var/lib/postgresql/data
|
- /srv/mastodon/postgres14:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
- 'POSTGRES_HOST_AUTH_METHOD=trust'
|
- 'POSTGRES_HOST_AUTH_METHOD=trust'
|
||||||
@@ -21,6 +24,7 @@ services:
|
|||||||
healthcheck:
|
healthcheck:
|
||||||
test: ['CMD', 'redis-cli', 'ping']
|
test: ['CMD', 'redis-cli', 'ping']
|
||||||
volumes:
|
volumes:
|
||||||
|
# - ./redis:/data
|
||||||
- /srv/mastodon/redis:/data
|
- /srv/mastodon/redis:/data
|
||||||
|
|
||||||
# es:
|
# es:
|
||||||
@@ -64,24 +68,19 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- traefik
|
- traefik
|
||||||
- internal_network
|
- internal_network
|
||||||
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
# prettier-ignore
|
# prettier-ignore
|
||||||
test: ['CMD-SHELL',"curl -s --noproxy localhost localhost:3344/health | grep -q 'OK' || exit 1"]
|
test: ['CMD-SHELL',"curl -s --noproxy localhost localhost:3000/health | grep -q 'OK' || exit 1"]
|
||||||
ports:
|
ports:
|
||||||
- '127.0.0.1:3344:3000'
|
- '127.0.0.1:3000:3000'
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- redis
|
- redis
|
||||||
# - es
|
# - es
|
||||||
volumes:
|
volumes:
|
||||||
|
# - ./public/system:/mastodon/public/system
|
||||||
|
# /mastodon/public/system
|
||||||
- /srv/mastodon/web:/mastodon/public/system
|
- /srv/mastodon/web:/mastodon/public/system
|
||||||
labels:
|
|
||||||
- traefik.enable=true
|
|
||||||
- traefik.http.routers.mastodonweb.rule=Host(`kvist.knast.cc`)
|
|
||||||
- traefik.http.routers.mastodonweb.entrypoints=websecure
|
|
||||||
- traefik.http.routers.mastodonweb.tls.certresolver=letsencr
|
|
||||||
- traefik.http.services.mastodonweb.loadbalancer.server.port=3344
|
|
||||||
|
|
||||||
streaming:
|
streaming:
|
||||||
# You can uncomment the following lines if you want to not use the prebuilt image, for example if you have local code changes
|
# You can uncomment the following lines if you want to not use the prebuilt image, for example if you have local code changes
|
||||||
@@ -97,18 +96,12 @@ services:
|
|||||||
- internal_network
|
- internal_network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
# prettier-ignore
|
# prettier-ignore
|
||||||
test: ['CMD-SHELL', "curl -s --noproxy localhost localhost:4433/api/v1/streaming/health | grep -q 'OK' || exit 1"]
|
test: ['CMD-SHELL', "curl -s --noproxy localhost localhost:4000/api/v1/streaming/health | grep -q 'OK' || exit 1"]
|
||||||
ports:
|
ports:
|
||||||
- '127.0.0.1:4433:4000'
|
- '127.0.0.1:4000:4000'
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- redis
|
- redis
|
||||||
labels:
|
|
||||||
- traefik.enable=true
|
|
||||||
- traefik.http.routers.mastodonstreaming.rule=(Host(`kvist.knast.cc`) && PathPrefix(`/api/v1/streaming`))
|
|
||||||
- traefik.http.routers.mastodonstreaming.entrypoints=websecure
|
|
||||||
- traefik.http.routers.mastodonstreaming.tls.certresolver=letsencr
|
|
||||||
- traefik.http.services.mastodonstreaming.loadbalancer.server.port=4433
|
|
||||||
|
|
||||||
sidekiq:
|
sidekiq:
|
||||||
# You can uncomment the following line if you want to not use the prebuilt image, for example if you have local code changes
|
# You can uncomment the following line if you want to not use the prebuilt image, for example if you have local code changes
|
||||||
@@ -124,6 +117,7 @@ services:
|
|||||||
- traefik
|
- traefik
|
||||||
- internal_network
|
- internal_network
|
||||||
volumes:
|
volumes:
|
||||||
|
# - ./public/system:/mastodon/public/system
|
||||||
- /srv/mastodon/sidekiq:/mastodon/public/system
|
- /srv/mastodon/sidekiq:/mastodon/public/system
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]
|
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ services:
|
|||||||
- WEB_DOMAIN=kvist.knast.cc
|
- WEB_DOMAIN=kvist.knast.cc
|
||||||
#
|
#
|
||||||
# - REDIS_HOST=redis
|
# - REDIS_HOST=redis
|
||||||
# - REDIS_URL=redis://redis:6379
|
- REDIS_URL=redis://redis:6379
|
||||||
- 'REDIS_URL=redis://redis:6379'
|
|
||||||
- REDIS_PORT=6379
|
- REDIS_PORT=6379
|
||||||
#
|
#
|
||||||
- DB_HOST=db
|
- DB_HOST=db
|
||||||
|
|||||||
Reference in New Issue
Block a user