Skip to content
Snippets Groups Projects
Select Git revision
  • 1afc70c990d4d23e5fac57de9cb579c396a82b5c
  • 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
  • docker-compose.yml 1.14 KiB
    version: '3'
    services:
    
      db:
        restart: always
        image: postgres:alpine
    ### Uncomment to enable DB persistance
    #    volumes:
    #      - ./postgres:/var/lib/postgresql/data
    
      redis:
        restart: always
        image: redis:alpine
    ### Uncomment to enable REDIS persistance
    #    volumes:
    #      - ./redis:/data
    
      web:
        build: .
        image: gargron/mastodon
        restart: always
        env_file: .env.production
        command: bundle exec rails s -p 3000 -b '0.0.0.0'
        ports:
          - "3000:3000"
        depends_on:
          - db
          - redis
        volumes:
          - ./public/assets:/mastodon/public/assets
          - ./public/packs:/mastodon/public/packs
          - ./public/system:/mastodon/public/system
    
      streaming:
        build: .
        image: gargron/mastodon
        restart: always
        env_file: .env.production
        command: npm run start
        ports:
          - "4000:4000"
        depends_on:
          - db
          - redis
    
      sidekiq:
        build: .
        image: gargron/mastodon
        restart: always
        env_file: .env.production
        command: bundle exec sidekiq -q default -q mailers -q pull -q push
        depends_on:
          - db
          - redis
        volumes:
          - ./public/system:/mastodon/public/system