Created
January 2, 2023 16:10
-
-
Save ToxicMushroom/24fc5bc02b3a1a3d602da4b71c669ec3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> cat docker-compose.yml | |
version: '3' | |
services: | |
db: | |
restart: always | |
image: postgres:14-alpine | |
shm_size: 256mb | |
healthcheck: | |
test: ['CMD', 'pg_isready', '-d', 'mastodon', '-U', 'mastodon_user'] | |
networks: | |
- internal | |
volumes: | |
- /drive4/data/mastodon/postgres14:/var/lib/postgresql/data | |
env_file: | |
- postgres.env | |
redis: | |
restart: always | |
image: redis:7-alpine | |
healthcheck: | |
test: ['CMD', 'redis-cli', 'ping'] | |
networks: | |
- internal | |
volumes: | |
- /drive4/data/mastodon/redis:/data | |
web: | |
image: lscr.io/linuxserver/mastodon:latest | |
restart: always | |
env_file: .env.production | |
networks: | |
- proxy_default | |
- internal | |
labels: | |
- "traefik.enable=true" | |
- "traefik.http.services.mastodon.loadbalancer.server.port=80" | |
- "traefik.http.routers.mastodon.rule=Host(`mast.melijn.me`) || Host(`mastodon.melijn.me`)" | |
- "traefik.http.routers.mastodon.tls=true" | |
- "traefik.http.routers.mastodon.entrypoints=websecure" | |
- "traefik.http.routers.mastodon.tls.certresolver=le" | |
depends_on: | |
- db | |
- redis | |
# - es | |
volumes: | |
- /drive4/data/mastodon/public/system:/config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment