Skip to content
Snippets Groups Projects
Select Git revision
  • c588fcf4bce63fa74a4232952a1d5dfe76a9b160
  • 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
    unarist authored and Eugen Rochko committed
    PostgreSQL10 has been released, but upgrading from older versions needs dump/restore. If you pull new version without those handling, db service will fail to launch.
    
    To prevent accidentally upgrading, and as a recommended version, this patch specifies PostgreSQL and Redis version.
    c75ca052
    History
    docker-compose.yml 1.15 KiB
    version: '3'
    services:
    
      db:
        restart: always
        image: postgres:9.6-alpine
    ### Uncomment to enable DB persistance
    #    volumes:
    #      - ./postgres:/var/lib/postgresql/data
    
      redis:
        restart: always
        image: redis:4.0-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