version: '3.7'
services:
    db:
        image: postgres:11
        volumes:
            - ./db/data:/var/lib/postgresql/data
        environment:
            - POSTGRES_PASSWORD=icnml
        ports:
            - 127.0.0.1:5432:5432
    
    web:
        build: web
        ports:
            - 80:5000
        env_file:
            - env
        volumes:
            - ./web/app:/app
        entrypoint: python dev.py

    redis:
        build: redis
