From fe71738dce5fde645b60994dd4d64b65472e9ec4 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sat, 15 Apr 2017 21:24:51 +0200 Subject: [PATCH] Document PostgreSQL and Redis persistence --- docker-compose.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d2b9601..00c2884 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,14 +14,24 @@ services: environment: POSTGRES_USER: "asciinema" POSTGRES_PASSWORD: "sekrit" - # see https://hub.docker.com/_/postgres/ for more configuration options - # for this image + + ### Uncomment to enable DB persistence + # volumes: + # - ./postgres:/var/lib/postgresql/data + + ### See https://hub.docker.com/_/postgres/ for more + ### configuration options for this image. redis: image: redis container_name: asciinema_redis - # see https://hub.docker.com/_/redis/ for more configuration options - # for this image + + ### Uncomment to enable Redis persistence + # volumes: + # - ./redis:/data + + ### See https://hub.docker.com/_/redis/ for more + ### configuration options for this image. sidekiq: image: asciinema/asciinema.org