Updates ports and environment variables