version: "2"

services:
    postgres-localhost:
        image: clkao/postgres-plv8
        container_name: postgres-localhost
        ports:
            - "15432:5432"
        environment:
            - "POSTGRES_USER=whitelist"
            - "POSTGRES_PASSWORD=endgame"
        restart: on-failure
        command: postgres -c jit=off

    dynamo-localhost:
        image: amazon/dynamodb-local
        ports:
            - "18000:8000"
        restart: on-failure

    elastic-localhost:
        image: docker.elastic.co/elasticsearch/elasticsearch:6.8.22
        ports:
            - "19200:9200"
            - "19300:9300"
        environment:
            - "discovery.type=single-node"
        restart: on-failure

    redis-localhost:
        image: redis:5.0-alpine
        ports:
            - "6379:6379"
        restart: on-failure

    mysql-localhost:
        image: mysql:5.6
        command: --default-authentication-plugin=mysql_native_password
        restart: on-failure
        ports:
            - "13306:3306"
        environment:
            MYSQL_ROOT_PASSWORD: endgame
            MYSQL_DATABASE: unicron
            MYSQL_USER: unicron
            MYSQL_PASSWORD: endgame
