version: '2' services: database: build: ./postgresql container_name: roundcube-postgresql networks: roundcube.internal.docker: aliases: - postgresql.roundcube.internal.docker volumes: - ./data/postgresql/data:/var/lib/postgresql/data ports: - "34010:5432" env_file: - env roundcube: build: ./roundcube container_name: roundcube-roundcube networks: roundcube.internal.docker: aliases: - roundcube.roundcube.internal.docker ports: - "34011:80" env_file: - env extra_hosts: - "test-mx.rthoni.com:192.168.56.102" networks: roundcube.internal.docker: