hometown-mastodon/docker-compose.yml.dist

67 lines
1.6 KiB
Text
Raw Normal View History

2022-12-03 15:34:49 +00:00
---
version: "2.1"
services:
mastodon:
image: dev.cat-enby.club/nikurasu/hometown:v1.0.7-3.5.5
2022-12-03 15:34:49 +00:00
container_name: mastodon
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
- LOCAL_DOMAIN=localhost
- REDIS_HOST=redis
- REDIS_PORT=6379
- DB_HOST=db
- DB_USER=mastodon
- DB_NAME=mastodon
- DB_PASS=mastodon
- DB_PORT=5432
- ES_ENABLED=false
- SECRET_KEY_BASE=sg
- OTP_SECRET=sg
- VAPID_PRIVATE_KEY=sg
- VAPID_PUBLIC_KEY=sg
- SMTP_SERVER=mail.your-server.de
- SMTP_PORT=25
- SMTP_LOGIN=
- SMTP_PASSWORD=
- SMTP_FROM_ADDRESS=
2022-12-03 15:34:49 +00:00
- S3_ENABLED=false
- WEB_DOMAIN=localhost #optional
- ES_HOST=es #optional
- ES_PORT=9200 #optional
- ES_USER=elastic #optional
- ES_PASS=elastic #optional
- S3_BUCKET= #optional
- AWS_ACCESS_KEY_ID= #optional
- AWS_SECRET_ACCESS_KEY= #optional
- S3_ALIAS_HOST= #optional
- WEB_CONCURRENCY=2 #optional #puma processes
volumes:
- config:/config
ports:
- 80:80
- 443:443
restart: unless-stopped
depends_on:
- db
- redis
redis:
image: bitnami/redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- redis-data:/bitnami/redis/data
db:
image: bitnami/postgresql:latest
environment:
- POSTGRESQL_USERNAME=mastodon
- POSTGRESQL_PASSWORD=mastodon
- POSTGRESQL_DATABASE=mastodon
volumes:
- db-data:/bitnami/postgresql
volumes:
config:
redis-data:
db-data: