Skip to content

Commit

Permalink
Merge pull request getredash#2325 from benmanns/patch-1
Browse files Browse the repository at this point in the history
Reduce restart to unless-stopped for Redis and Postgres
  • Loading branch information
arikfr committed Feb 19, 2018
2 parents 906c8fc + 6149e00 commit 06e9d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Expand Up @@ -33,11 +33,11 @@ services:
WORKERS_COUNT: 2
redis:
image: redis:3.0-alpine
restart: always
restart: unless-stopped
postgres:
image: postgres:9.5.6-alpine
# The following turns the DB into less durable, but gains significant performance improvements for the tests run (x3
# improvement on my personal machine). We should consider moving this into a dedicated Docker Compose configuration for
# tests.
command: "postgres -c fsync=off -c full_page_writes=off -c synchronous_commit=OFF"
restart: always
restart: unless-stopped

0 comments on commit 06e9d19

Please sign in to comment.