services: dovecot: image: dovecot/dovecot restart: always networks: - default ports: - 143:143 - 993:993 volumes: - ./vmail:/srv/mail - ./dovecot/config:/etc/dovecot - ./dovecot/passwd:/etc/dovecot/passwd roundcube: image: roundcube/roundcubemail networks: - default ports: - 8081:80 environment: - ROUNDCUBEMAIL_DEFAULT_HOST=dovecot - ROUNDCUBEMAIL_DEFAULT_PORT=143 depends_on: - dovecot imapsync: build: dockerfile: ./dockerfile/imapsync-dockerfile container_name: imapsync restart: always expose: - 993 - 143 volumes: - ./db:/app/db networks: - default depends_on: - dovecot streamlit: build: dockerfile: ./dockerfile/streamlit-dockerfile container_name: streamlit restart: always ports: - 8082:80 volumes: - ./db:/app/db logging: driver: journald options: tag: imapsync networks: - default depends_on: - dovecot volumes: vmail: driver: local driver_opts: type: 'none' o: 'bind' device: './vmail' networks: default: driver: bridge ipam: driver: default config: - subnet: 192.168.203.0/24 webmail: driver: bridge