version: '3'
services:
  db:
    image: 'postgres:10.6-alpine'
    volumes:
      - '/var/lib/postgresql/data'
    restart: always
  app:
    image: 'chowist:dev'
    build:
      context: '..'
      dockerfile: './build/django.Dockerfile'
    env_file: 'envs/django.env'
    ports:
      - '8000:8000'
    depends_on:
      - db
    restart: always

version: '3'
services:
  db:
    image: 'postgres:10.7-alpine'
    volumes:
      - '/var/lib/postgresql/data'
    restart: always
  app:
    image: 'chowist:dev'
    build:
      context: '..'
      dockerfile: './build/django.Dockerfile'
    env_file: 'envs/django.env'
    ports:
      - '8000:8000'
    depends_on:
      - db
    restart: always

Update postgres in docker compose
Update postgres in docker compose
