sapldb:
  image: postgres:10.5-alpine
  restart: always
  environment:
    POSTGRES_PASSWORD: sapl
    POSTGRES_USER: sapl
    POSTGRES_DB: sapl
    PGDATA : /var/lib/postgresql/data/
  volumes:
    - sapldb_data:/var/lib/postgresql/data/
  ports:
    - "5432:5432"
sapl:
  image: interlegis/sapl:3.1.141
  restart: always
  environment:
    ADMIN_PASSWORD: interlegis
    ADMIN_EMAIL: email@dominio.net
    DEBUG: 'False'
    EMAIL_PORT: 587
    EMAIL_USE_TLS: 'False'
    EMAIL_HOST: smtp.dominio.net
    EMAIL_HOST_USER: usuariosmtp
    EMAIL_HOST_PASSWORD: senhasmtp
    TZ: America/Sao_Paulo
  volumes:
    - sapl_data:/var/interlegis/sapl/data
    - sapl_media:/var/interlegis/sapl/media
  links:
    - sapldb
  ports:
    - "80:80"