Skip to content
Snippets Groups Projects
Select Git revision
  • a55ad84251fe9f00e095509d82db8e7e77f57813
  • main default protected
  • mathstodon-4.3.6
  • mathstodon-4.3.x
  • mathstodon-4.2.15
  • mathstodon-4.2.10
  • mathstodon-4.2.7
  • mathstodon-4.2.6
  • v4.2.5
  • v4.2.2
  • mathstodon-4.2.5
  • mathstodon-4.2
  • mathstodon-4.1
  • mastodon-4.1.3
  • v4.1.3
  • v4.1.0-diff
  • mathstodon-4.1.0
  • mastodon-v4.1.0
  • v4.0.2
  • mathstodon-4.0.2
  • mathstodon-3.5.3
  • v4.0.0rc3
  • v4.0.0rc2
  • v4.0.0rc1
  • v3.5.3
  • v3.4.8
  • v3.5.2
  • v3.5.1
  • v3.4.7
  • v3.3.3
  • v3.5.0
  • v3.5.0rc3
  • v3.5.0rc2
  • v3.5.0rc1
  • v3.4.6
  • v3.3.2
  • v3.3.1
  • v3.4.5
  • v3.4.4
  • v3.4.3
  • v3.4.2
41 results

docker-compose.yml

Blame
  • user avatar
    Shlee authored and GitHub committed
    * Update docker-compose.yml
    
    * Update docker-compose.yml
    
    * Update docker-compose.yml
    
    * Update docker-compose.yml
    
    * Update docker-compose.yml
    91055f49
    History
    docker-compose.yml 2.67 KiB
    version: '3'
    services:
    
      db:
        restart: always
        image: postgres:9.6-alpine
        shm_size: 256mb
        networks:
          - internal_network
        healthcheck:
          test: ["CMD", "pg_isready", "-U", "postgres"]
        volumes:
          - ./postgres:/var/lib/postgresql/data
    
      redis:
        restart: always
        image: redis:6.0-alpine
        networks:
          - internal_network
        healthcheck:
          test: ["CMD", "redis-cli", "ping"]
        volumes:
          - ./redis:/data
    
    #  es:
    #    restart: always
    #    image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.10
    #    environment:
    #      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    #      - "cluster.name=es-mastodon"
    #      - "discovery.type=single-node"
    #      - "bootstrap.memory_lock=true"
    #    networks:
    #      - internal_network
    #    healthcheck:
    #      test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
    #    volumes:
    #      - ./elasticsearch:/usr/share/elasticsearch/data
    #    ulimits:
    #      memlock:
    #        soft: -1
    #        hard: -1
    
      web:
        build: .
        image: tootsuite/mastodon
        restart: always
        env_file: .env.production
        command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
        networks:
          - external_network
          - internal_network
        healthcheck:
          test: ["CMD-SHELL", "wget -q --spider --proxy=off localhost:3000/health || exit 1"]
        ports:
          - "127.0.0.1:3000:3000"
        depends_on:
          - db
          - redis
    #      - es
        volumes:
          - ./public/system:/mastodon/public/system
    
      streaming:
        build: .
        image: tootsuite/mastodon
        restart: always
        env_file: .env.production
        command: node ./streaming
        networks: