DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ed80375fa582f3dc9e9fbdfc8f48eb1a5e115913 — Jonni Liljamo 1 year, 9 months ago 54b04fd
feat(api): add redis configuration to docker-compose.dev.yaml
1 files changed, 16 insertions(+), 0 deletions(-)

M api/docker-compose.dev.yaml
M api/docker-compose.dev.yaml => api/docker-compose.dev.yaml +16 -0
@@ 7,6 7,8 @@ networks:
volumes:
  laurelindb_data:
    driver: local
  laurelinredis_data:
    driver: local

services:
  laurelindb:


@@ 23,3 25,17 @@ services:
      POSTGRES_USER: laurelin
      POSTGRES_PASSWORD: laurelin
      POSTGRES_DB: laurelin

  laurelinredis:
    image: redis:7.0.8-alpine
    container_name: laurelinredis
    restart: always
    networks:
      - internal
    ports:
      - 6379:6379
    volumes:
      - laurelinredis_data:/data
    # save the state every 60 seconds, 
    # but only if at least 1 write operation was made in that time
    command: redis-server --save 60 1 --loglevel warning