From 0b002c792182451a88e1aa34e3f15b98e47c7abf Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Sun, 18 Apr 2021 02:43:59 +0200 Subject: [PATCH] remove obsolete docker-compose --- docker-compose.yml | 84 ---------------------------------------------- 1 file changed, 84 deletions(-) delete mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 80f52e6..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,84 +0,0 @@ -# This is the docker-compose.yml I use with Traefik v2, feel free to use it. -version: '3' - -networks: - http_network: - external: true - mastodon_network: - external: false - -services: - traefik: - image: traefik:2.2 - container_name: traefik - restart: unless-stopped - ports: - - 80:80 - - 443:443 - labels: - # There you should configure as you like: https://docs.traefik.io/user-guides/docker-compose/basic-example/ - volumes: - - /var/run/docker.sock:/var/run/docker.sock:ro - - /home/docker/traefik/traefik.yml:/etc/traefik/traefik.yml - - /home/docker/traefik/acme.json:/acme.json - - /home/docker/traefik/config.yml:/config.yml - networks: - - http_network - - mastodon-db: - image: postgres:9.6-alpine - container_name: mastodon-db - restart: unless-stopped - volumes: - - /home/docker/mastodon/db:/var/lib/postgresql/data - environment: - - POSTGRES_USER=mastodon - - POSTGRES_DB=mastodon - - POSTGRES_PASSWORD= - networks: - - mastodon_network - - mastodon-redis: - image: redis:6.0-alpine - container_name: mastodon-redis - restart: unless-stopped - volumes: - - /home/docker/mastodon/redis:/data - networks: - - mastodon_network - - mastodon: - image: mastodon - container_name: mastodon - restart: unless-stopped - env_file: /home/docker/mastodon/.env.production - networks: - - http_network - - mastodon_network - depends_on: - - mastodon-db - - mastodon-redis - volumes: - - /home/docker/mastodon/data:/mastodon/public/system - - /home/docker/mastodon/logs:/mastodon/log - labels: - - traefik.enable=true - - traefik.http.routers.mastodon-web.entrypoints=http - - traefik.http.routers.mastodon-web.rule=Host(`domain.tld`) - - traefik.http.routers.mastodon-web.middlewares=https-redirect@file - - traefik.http.routers.mastodon-web-secure.entrypoints=https - - traefik.http.routers.mastodon-web-secure.rule=Host(`domain.tld`) - - traefik.http.routers.mastodon-web-secure.tls=true - - traefik.http.routers.mastodon-web-secure.tls.certresolver=http - - traefik.http.routers.mastodon-web-secure.service=mastodon-web - - traefik.http.services.mastodon-web.loadbalancer.server.port=3000 - - traefik.http.routers.mastodon-streaming.entrypoints=http - - traefik.http.routers.mastodon-streaming.rule=Host(`domain.tld`) && PathPrefix(`/api/v1/streaming`) - - traefik.http.routers.mastodon-streaming.middlewares=https-redirect@file - - traefik.http.routers.mastodon-streaming-secure.entrypoints=https - - traefik.http.routers.mastodon-streaming-secure.rule=Host(`domain.tld`) && PathPrefix(`/api/v1/streaming`) - - traefik.http.routers.mastodon-streaming-secure.tls=true - - traefik.http.routers.mastodon-streaming-secure.tls.certresolver=http - - traefik.http.routers.mastodon-streaming-secure.service=mastodon-streaming - - traefik.http.services.mastodon-streaming.loadbalancer.server.port=4000 - - traefik.docker.network=http_network