mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
Persist volumes by default in docker-compose (#9055)
Too many databases were lost to this
This commit is contained in:
parent
81017eaea7
commit
969a10a5d1
@ -6,18 +6,16 @@ services:
|
|||||||
image: postgres:9.6-alpine
|
image: postgres:9.6-alpine
|
||||||
networks:
|
networks:
|
||||||
- internal_network
|
- internal_network
|
||||||
### Uncomment to enable DB persistence
|
volumes:
|
||||||
# volumes:
|
- ./postgres:/var/lib/postgresql/data
|
||||||
# - ./postgres:/var/lib/postgresql/data
|
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
restart: always
|
restart: always
|
||||||
image: redis:4.0-alpine
|
image: redis:4.0-alpine
|
||||||
networks:
|
networks:
|
||||||
- internal_network
|
- internal_network
|
||||||
### Uncomment to enable REDIS persistence
|
volumes:
|
||||||
# volumes:
|
- ./redis:/data
|
||||||
# - ./redis:/data
|
|
||||||
|
|
||||||
# es:
|
# es:
|
||||||
# restart: always
|
# restart: always
|
||||||
@ -26,9 +24,8 @@ services:
|
|||||||
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
||||||
# networks:
|
# networks:
|
||||||
# - internal_network
|
# - internal_network
|
||||||
#### Uncomment to enable ES persistence
|
# volumes:
|
||||||
## volumes:
|
# - ./elasticsearch:/usr/share/elasticsearch/data
|
||||||
## - ./elasticsearch:/usr/share/elasticsearch/data
|
|
||||||
|
|
||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
@ -68,7 +65,7 @@ services:
|
|||||||
image: tootsuite/mastodon
|
image: tootsuite/mastodon
|
||||||
restart: always
|
restart: always
|
||||||
env_file: .env.production
|
env_file: .env.production
|
||||||
command: bundle exec sidekiq -q default -q push -q mailers -q pull
|
command: bundle exec sidekiq
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- redis
|
- redis
|
||||||
|
Loading…
Reference in New Issue
Block a user