gearheads
/
mastodon
Archived
2
0
Fork 0

Persist volumes by default in docker-compose (#9055)

Too many databases were lost to this
gh/stable
Eugen Rochko 2018-10-23 00:08:25 +02:00 committed by GitHub
parent 81017eaea7
commit 969a10a5d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 10 deletions

View File

@ -6,18 +6,16 @@ services:
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
@ -26,9 +24,8 @@ services:
# - "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: .
@ -68,7 +65,7 @@ services:
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