version: '3.6'

volumes:
  dbdata:

services:
  db:
    image: mdillon/postgis:9.6-alpine
    environment:
      POSTGRES_USER: root
      POSTGRES_PASSWORD: root
      POSTGRES_DB: avis
    ports:
      - "5434:5432"
    volumes:
      - dbdata:/var/lib/postgresql/data

  mailhog:
    # do not use in production!
    image: mailhog/mailhog:latest
    ports:
      - '8025:8025'
      - '1025:1025'
