image: postgres:9.6-alpine
networks:
- internal_network
-### Uncomment to enable DB persistence
-# volumes:
-# - ./postgres:/var/lib/postgresql/data
+ volumes:
+ - ./postgres:/var/lib/postgresql/data
redis:
restart: always
image: redis:4.0-alpine
networks:
- internal_network
-### Uncomment to enable REDIS persistence
-# volumes:
-# - ./redis:/data
+ volumes:
+ - ./redis:/data
# es:
# restart: always
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# networks:
# - internal_network
-#### Uncomment to enable ES persistence
-## volumes:
-## - ./elasticsearch:/usr/share/elasticsearch/data
+# volumes:
+# - ./elasticsearch:/usr/share/elasticsearch/data
web:
build: .
image: tootsuite/mastodon
restart: always
env_file: .env.production
- command: bundle exec sidekiq -q default -q push -q mailers -q pull
+ command: bundle exec sidekiq
depends_on:
- db
- redis