version: '2'

services:

    snappass:
        build: .
        image: pinterest/snappass
        ports:
            - "5000:5000"
        environment:
            - REDIS_HOST=redis
            - NO_SSL=True
        depends_on:
          - redis

    redis:
        image: "redis:latest"

version: '2'

services:

    snappass:
        build: .
        image: pinterest/snappass
        ports:
            - "5000:5000"
        stop_signal: SIGINT
        environment:
            - REDIS_HOST=redis
            - NO_SSL=True
        depends_on:
          - redis

    redis:
        image: "redis:latest"

Use SIGINT to grecefully shutdown flask
Use SIGINT to grecefully shutdown flask
